Enables scripted content fragments to render and interact with the configured content editor.

Methods

GetHasValueScript

Renders a JavaScript function which accepts a field in a dynamic form and returns whether the field has a value

Usage

#set($stringResponse = $core_v2_dynamicForm.GetHasValueScript($uniqueId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringUnique IdRequired

Return Type

string

GetTypeScript

Renders a JavaScript function which accepts a field in a dynamic form and returns the type of that field

Usage

#set($stringResponse = $core_v2_dynamicForm.GetTypeScript($uniqueId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringUnique IdRequired

Return Type

string

GetValueScript

Renders a JavaScript function which accepts a field in a dynamic form and returns the value of that field

Usage

#set($stringResponse = $core_v2_dynamicForm.GetValueScript($uniqueId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringUnique IdRequired

Return Type

string

GetValuesScript

Renders a JavaScript expression which extracts the current values of a rendered dynamic form

Usage

#set($stringResponse = $core_v2_dynamicForm.GetValuesScript($uniqueId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringForm IdRequired

Return Type

string

RenderForm

Renders a dynamic form based on dynamic configuration XML

Usage

#set($stringResponse = $core_v2_dynamicForm.RenderForm($uniqueId, $configurationXml))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringUnique IdRequired
configurationXmlstringConfiguration XmlRequired

Return Type

string

RenderForm

Renders a dynamic form based on dynamic configuration XML

Usage

#set($stringResponse = $core_v2_dynamicForm.RenderForm($uniqueId, $configurationXml, "%{GroupFooterHtmlFormat = $groupFooterHtmlFormatArg, GroupHeaderHtmlFormat = $groupHeaderHtmlFormatArg, HidePropertiesWithoutValues = $hidePropertiesWithoutValuesArg, PropertyFooterHtmlFormat = $propertyFooterHtmlFormatArg, PropertyHeaderHtmlFormat = $propertyHeaderHtmlFormatArg, SubGroupFooterHtmlFormat = $subGroupFooterHtmlFormatArg, SubGroupHeaderHtmlFormat = $subGroupHeaderHtmlFormatArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringUnique IdRequired
configurationXmlstringConfiguration XmlRequired
GroupFooterHtmlFormatstringGroup Footer Html FormatOptional
GroupHeaderHtmlFormatstringGroup Header Html FormatOptional
HidePropertiesWithoutValuesboolHide Properties Without ValuesOptional
PropertyFooterHtmlFormatstringProperty Footer Html FormatOptional
PropertyHeaderHtmlFormatstringProperty Header Html FormatOptional
SubGroupFooterHtmlFormatstringSub Group Footer Html FormatOptional
SubGroupHeaderHtmlFormatstringSub Group Header Html FormatOptional

Return Type

string

RenderForm

Renders a dynamic form based on dynamic configuration XML

Usage

#set($stringResponse = $core_v2_dynamicForm.RenderForm($uniqueId, $configurationXml, $data))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringUnique IdRequired
configurationXmlstringConfiguration XmlRequired
dataQueryStringData to pre-fill in the formRequired

Return Type

string

RenderForm

Renders a dynamic form based on dynamic configuration XML

Usage

#set($stringResponse = $core_v2_dynamicForm.RenderForm($uniqueId, $configurationXml, $data, "%{GroupFooterHtmlFormat = $groupFooterHtmlFormatArg, GroupHeaderHtmlFormat = $groupHeaderHtmlFormatArg, HidePropertiesWithoutValues = $hidePropertiesWithoutValuesArg, PropertyFooterHtmlFormat = $propertyFooterHtmlFormatArg, PropertyHeaderHtmlFormat = $propertyHeaderHtmlFormatArg, SubGroupFooterHtmlFormat = $subGroupFooterHtmlFormatArg, SubGroupHeaderHtmlFormat = $subGroupHeaderHtmlFormatArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uniqueIdstringUnique IdRequired
configurationXmlstringConfiguration XmlRequired
dataQueryStringData to pre-fill in the formRequired
GroupFooterHtmlFormatstringGroup Footer Html FormatOptional
GroupHeaderHtmlFormatstringGroup Header Html FormatOptional
HidePropertiesWithoutValuesboolHide Properties Without ValuesOptional
PropertyFooterHtmlFormatstringProperty Footer Html FormatOptional
PropertyHeaderHtmlFormatstringProperty Header Html FormatOptional
SubGroupFooterHtmlFormatstringSub Group Footer Html FormatOptional
SubGroupHeaderHtmlFormatstringSub Group Header Html FormatOptional

Return Type

string