Form templates are reusable form elements for use in the other forms. When you make a change in a template, all of the forms using that using template are automatically updated by change.
Form templates also support usage of the parameters as variables in XPath or script definitions, like showing a panel when a certain condition is met.
Defining a New Form Template
...
Create a data model type for "Person"
- Open "Data Model"
- Click on "Types" tab.
- Click on "Add New Type" button and enter the name field as "PersonType"
- Click on "Details" button
- Create 2 new field fields by clicking on "Add New Element" button with the following properties;:
- Name (string)
- Surname (string)
- EmailAddress (string)
Create a form template for "Person" model
- Click on + button in the form templates
- Enter the name field as "Person Template" and select root element as "PersonType" and click to "Ok" button
- Template designer will automatically be automatically openopened.
- Click to "Add New" from toolbox and select "Row Layout Content" from toolbox. Rename label to the "Person Information"
- Click "Column" button from the toolbox, and select 3 column layout. Row content will be split to into 3 column columns side by side.
- Click on columns and create a new "Row Layout Content" again for each column.
- For each column create a new control for "Name", "Surname", "EmailAddress" fields.
...
Using Template In a Form
- Open "Data Model"
- Create a new field by using "PersonType" from current schema and name it as "Person".
- Open the form you want to add the new "Person" template to
- Click to "Add New" button from toolbox and template is will automatically be suggested, like below.