Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column

A control template is a control that was published by the form designer so that it can be reused in other forms and by other designers within the same tenant. You typically want to publish control templates when you create complex control with sophisticated layouts, field patterns, business rules, etc., and want to reuse that work in another form or share it with another form designer. You also may consider using control templates when you need to split the work among a number of form designers, where each designer is responsible for creating a subsection of a complex form and another designer is responsible for assembling these control templates into a final form or flow.

Click Control Templates for Common Rules to see examples of common custom controls.

Column
width240px

On this page:

Table of Contents
maxLevel1

...

Note

The image, video, table, upload and pagebreak controls are not allowed in a custom control. You will see this message if you try to publish a section that contains any of these controls: "Sorry - the custom control contains a control that is not allowed in the custom palette."

Publishing Controls with Rules

...

The assigned prefixes will show in the Form OutlineThis is helpful when writing the rules for the second and third instances.


The rule shown populates the control named a in the second copy of the custom control with the word "sour" and the third copy with the text "sweet and sour" respectively whem the form loads. Notice the a controls in the second and third copies are referenced with the prefix in the rule.

Code Block
if(form.load)
{
a.value='sweet';
}
if (C196a.value.length > 0) {
C196a.value = 'sour';
}
if (C198a.value.length > 0) {
C198a.value ='sweet and sour';
}

...