Form templates are reusable form elements for use in other forms. When you make a change in a template all forms that using template are automatically updated by change.
Form templates also supports the parameters to use as variables in XPath or script definitions like show a panel when certain condition is met.
Defining a New Form Template
To create a form template, you need to create data model type first.
Create a data model type for "Person"
- Open "Data Model"
- Click on "Types" tab.
- Click on "Add New Type" button and enter name field as "PersonType"
- Click on "Details" button
- Create 2 new field by clicking on "Add New Element" button with following properties;
- Name (string)
- Surname (string)
- EmailAddress (string)
Create a form template for "Person" model
- Click on + button in form templates
- Enter name field as "Person Template" and select root element as "PersonType" and click to "Ok" button
- Template designer will be automatically open.
- Click to "Add New" from toolbox and select "Row Layout Content" from toolbox. Rename label to "Person Information"
- Click "Column" button from toolbox and select 3 column layout. Row content will be split to 3 column 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.
Final template should be look like this
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 new "Person" template
- Click to "Add New" button from toolbox and template is automatically suggested like below.