Form Templates
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 template are automatically updated.
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
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 the name field as "PersonType"
- Click on "Details" button
- Create 2 new 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 "Ok" button
- Template designer will automatically be opened.
- Click "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 into 3 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.
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 "Person".
- Open the form you want to add the new "Person" template to
- Click "Add New" button from toolbox and template will automatically be suggested, like below.
Copyright © 2010 - 2023 Emakin. All rights reserved.