- 16 Apr 2023
- 11 Minutes to read
- Print
- DarkLight
- PDF
Create forms
- Updated on 16 Apr 2023
- 11 Minutes to read
- Print
- DarkLight
- PDF
Forms are used to capture information from the customer or agent during a workflow.
This article describes how to create and design forms using the Form Designer.

Create a new form
To create a new form:
In the Lightico Administration page, in the left pane, click Workflow > Form Designer.
Click Create in the top right corner.
In the Create New Form Dialog box, enter a name for the form and click Create.
The Form Designer opens, allowing you to add different elements to the form.
Note:When you create a new form, it includes the first section by default. Sections are used to organize the information on your form and are not visible to the customer.Add attribute fields to the form as described below.
Design and format the form as described below.
Click Save.
Add attribute fields to the form
You can add the following types of fields to a form:
- Text - Enter free text
- Number - Enter a number
- Date - Select a date from a calendar
- Checkbox - Select one or more options
- Dropdown - Select one option from a dropdown list
- Radio button - Select one of the button options
Every field in a form needs to be bound to an attribute. When building a form, you can either link to existing attributes (see Create basic attributes) or create attributes as you add fields to the form.
To add attribute fields to a form:
Click the + button in the relevant section and select Attribute.
The Select Attribute dialog appears.
Search an existing attribute or create a new one (see below), then click Add.
The field is added to the form.
Configure the field settings.
When you select a field, the settings for that field are displayed in the settings pane on the right.
See Field settings for a description of each of the field settings and how to configure them.
- Click Save to update the form.

Create a new attribute in the Form Designer
When you add a field to the form, you can either select an existing attribute, or choose to create a new attribute.
To create a new attribute in the Form Designer:
- Add an attribute field to the form.
The Select Attribute window appears (see above). - Click Create Attribute.
The create attribute dialog appears.
- Configure settings using the following general guidelines:Note;Not all settings apply to all types of attributes.
- Attribute name - Unique system name to identify the attribute in the system. Only lower case letters and underscores are allowed.
- Attribute label - A description of the attribute. This text appears in the field before it is filled in.
- Max characters restriction (for text and number only)- Maximum number of characters that can be entered into this field by the customer.
- Add options (for checkbox, dropdown, radio button only) - To define the options for multiple selection attributes, do one of the following:
- Select Link to a dataset and select a dataset file. (To create and upload a dataset file, see the first two sections of Create dataset attributes.)
- Select Insert manually and enter the options from which you want the customer to select. Each option must have an ID (number or character to identify each option) and a Name. For example, if the values are red, yellow and blue, enter them as follows:
- Select Link to a dataset and select a dataset file. (To create and upload a dataset file, see the first two sections of Create dataset attributes.)
- Limited time range (for date only) - Turn on this toggle to set either a relative or absolute time range.
- Mandatory and Optional properties (for address only) - see Address Auto-Complete and Validation.
The next section explains additional settings that can be configured for fields after they have been added to the form.
Field settings
After you've added an attribute field to a form, you can select the field and configure settings for the field in the right pane of the Form Designer.
See the beginning of each section below for information about to which field types the setting applies.
Label
Applies to all fields.
The title that appears above the field in the session.
Default Value
Applies to all fields.
- For text and number fields, you can select a default value for a field in 2 ways:
- Enter a default value by selecting Value and entering the value in the box.
- Define another attribute as the default value by selecting From Attribute and entering the relevant attribute.
- For date fields, select the default date that will be selected in the form.
- For checkbox, dropdown, and radio button fields, select the value(s) that you went to be selected by default in the form.
Bind to Attribute
Applies to all fields.
All form fields are bound to an attribute. You can change the attribute to which a field is bound.
Required
Applies to all fields.
Define whether or not the field is required. You can also set a condition under which the field is required.
To define a field as required:
- Under Required, select Yes.
The condition settings appear.
- If you'd like to set a condition under which the field will be required, select Condition.
The condition window appears.Enter the condition statement by selecting an attribute, a comparison operator (for example, Contains) and the value you want to compare it against. For example, you can set a condition that the attribute state_address should contain the value California.
- Click Save.
Validations
Applies to text fields only.
This property is read-only and indicates whether there are any input validations on the text field. You edit this property in the attribute itself in the Attributes mapping page.
Min characters required
Applies to text and number fields only.
The minimum number of characters that the customer needs to enter.
Max characters allowed
Applies to text and number fields only.
The maximum number of characters that the customer is allowed to enter.
This property is read-only. You edit this property in the attribute itself in the Attributes mapping page.
Format
Applies to number and date fields only.
For number format, you can select how many decimal places to display.
For date format, you can select the format for displaying the date in the form.
Width
Applies to all fields.
The percentage of the line that this field occupies. Used when there are two fields in one row of the form.
Selected checkboxes
Applies to checkboxes only.
Choose a minimum and maximum number of options that the user can select in the form. If the user selects out of that range they will get a message that shows the number of options they need to select.
Sort
Applies to checkbox, dropdown, and radio button fields only.
Arrange the options in the customer form in ascending or descending order. The sorting is based on one of the associated properties of the attribute.
To sort the options in a dataset field:
- In the Settings panel, select an associated property for the attribute.
- Click the the arrow to define ascending or descending order.
Send to Agent
Applies to dropdown, and radio button fields only.
Configure a field in a form so that after the customer selects an option, the value of this field will be displayed in the agent interaction bubble after the form is completed. Use this feature when agents are required to transfer certain pieces of data from the session into your CRM.

To send a field value to the agent:
- In the Dropdown Settings panel, turn on the Send to Agent toggle.
- Under Property, select the associated property of the bound attribute that you want to show.
- Under Property label, change the text that appears before the property value in the interaction bubble.
Restrictions
Applies to date fields only.
A read-only fields that shows if a limited time range was defined for this number attribute (see Create basic attributes).
Filters for dropdown fields
There are two types of filters for limiting the dropdown options that the customer sees in the form:
Local filter
Applies to dropdown fields only.
Apply a filter to a dropdown field that limits the options that the customer sees in the form. The instructions below illustrate how to show only items with a certain price.
To apply a filter to a dropdown field:
- In the Dropdown Settings panel under Filters, select one of the associated properties (in the example, price).
A list of all possible values for the selected property appears.
- Select the values that you want to appear in the form (in the example, 200 and 100).
In our example, only items with a price of 200 or 100 will be shown to the customer in the dropdown.
Cascade filter
Applies to dropdown fields only.
Create a filter for a dropdown field based on the input from a different dropdown in the form. For example, when the customer selects a phone, he is only shown phone covers that fit that phone. To create this filter, the two dropdowns must have an associated property in common. In our example, both the phone model dataset and cover model dataset include an associated property called called size.
When the customer selects a small size phone from the first dropdown, the second dropdown will only show covers that are are listed as small size.
To create a cascade filter:
- Select the dropdown field that you want to filter. (in the example, phone_covers)
- Under Cascade by, from the first list, select the dropdown dataset on which to base the filter. (in the example, phones_with_size)
- From the second list, select the shared property by which you want to filter. (in the example, size)
Design the form
This section describes how to work with the different design elements of the form.
Pages
Using the page toolbar at the top of the page, you can add new pages to a form and set conditions to determine if and when the page will be visible to the user.
Add a new page
To add a new page, click the + button in the page toolbar.
To scroll between the pages, use the dropdown list or the arrows.
To rename the page, click on the current page name, and edit the name.
Show or hide pages based on conditions
You can set visibility conditions to determine when the page will be visible to the customer based on certain conditions. For example, you can set a page to be visible only to people who live in California (based on the value they entered for State).
To set visibility on a page:
Click the settings button. The page settings pane opens:
Click Only visible if, and in the dialog box that opens, set the visibility conditions based on the relevant attributes.
You can combine multiple condition statements using And / Or logical operators. You can also create more complex conditions by including some condition statements in parentheses. For more information about working with conditions, see Setting conditions in workflows.
Make a page repeatable
You can allow customers to fill out a page in your form twice, by making the page repeatable. You can set a condition to make the page repeatable based on the value of an attribute.
To make a page repeatable:
Click the settings button to open the page settings and click the Repeatable toggle.
In the Repeat By Attribute box, enter the attribute that you want to base your condition on.
Enter the condition for when the page will be repeatable.
Click Save.
Sections
You can organize a page on your form into different sections. Each section has a title and can be hidden or shown according to conditions that you define (see below).
To add a section to the form:
Click the + button and select Section.
A new section is added.
- To rename the section, select the current section name, and edit it.
Section visibility
You can set visibility conditions on a section to determine when the section will be visible to the customer based on certain conditions. For example, you can set a section to be visible only to people above the age of 18 (based on the value they entered for Age).
To set section visibility:
Click the section so that the Section Settings appear in the Settings pane:
Click Only visible if, and in the dialog box that opens, set the visibility conditions based on the relevant attributes.
You can combine multiple condition statements using And / Or logical operators. You can also create more complex conditions by including some condition statements in parentheses. For more information about working with conditions, see Setting conditions in workflows.
Make a section duplicatable
When you create a visual cart, you can set a section to be duplicatable. This means that the agent can re-use the section of the form multiple times in the the same journey. For more information, see Create a visual cart.
Labels
Labels are lines of text that can be used as titles and can add more organization and clarity to the form. Unlike formatted text, labels can be placed side-by-side with form fields and the text can be an attribute value that changes according to the session data.
To add a label:
Click the + button and select Label.
A new label is added and the Label settings pane opens on the right.
You can enter the name of the label or base the label value on an attribute.
- To enter the value of the label, select Value and type the name of the label
- To base the label value on an attribute, select From Attribute and select the relevant attribute
Select the font size from the Font size list.
If you drag this field next to another field in your form, you can define the relative width in the Width list.
Formatted text
To add formatted text to your form:
- Click the + button and select Rich Text.
The text editor appears. - Enter and format your text.
Layout
You can arrange the different elements in the form by dragging them to the relevant location in the form.
Most elements can be arranged side by side in the same row, except for dropdown fields, checkbox fields and formatted text. You can place up to a maximum of 3 elements per row.
In the element settings you can set the relative width of each element in the Width box.