- Documentation
- User Application
- Templates
- Fields
List Of Values
A List Of Values is a drop-down list. You type its values in the field (Tags), or they come from a dictionary (Dictionary). It is available in HTML and PDF templates.
To show all the options on the form instead of a list, use a Radio. For the settings that all fields share, such as permissions, dependencies and style, see Field settings.
A new List Of Values is required, and both the client and the agent can edit it.
Choose where the values come from
Section titled “Choose where the values come from”At the top of the Values & Display tab, select Tags or Dictionary:
- Tags: you type the values in the field. Use it for a short list that belongs to this form, for example “Yes”, “No”.
- Dictionary: the values come from a dictionary of the project. Use it for long lists, lists that several templates share, or lists whose saved value isn’t the text the client sees, for example bank names that save the bank code. You create dictionaries under Data Sources: see Dictionaries, and Automated dictionaries for a dictionary that is refreshed from an external source.
Switching between Tags and Dictionary clears the values and the default value of the list.
Type a value and press Enter, or type a comma, to add it. To remove the last value, press Backspace in the empty box.
The client sees the text of the value, and the same text is saved.
Two values with the same text, or a value with a comma, are reported as warnings on the Issues tab. See Issues.
Dictionary
Section titled “Dictionary”
| Setting | What it does |
|---|---|
| Select dictionary | The dictionary that supplies the values. The client sees the Text of each value, and the field saves its Value. |
| AJAX search | The list searches the dictionary while the client types, instead of loading all its values when the form opens. Use it for large dictionaries. Off by default. For a dictionary with more values than the limit set by Cellosign (200 by default), it is turned on and can’t be turned off. |
| Search type | Shown when AJAX search is on. Fuzzy (the default) or Strict. See Search types. |
| Filter list | Another List Of Values field that this list depends on (“Selected dictionary will be filtered by selected value.”). See Dependent lists. |
Search types
Section titled “Search types”| Search type | How it finds values |
|---|---|
| Fuzzy | Finds texts that are similar to what the client typed, so small typos are allowed. For example, “aple” finds “apple”. A search of up to 2 characters, or of a number, finds the texts that contain it. |
| Strict | Finds the texts that contain exactly what the client typed. Upper and lower case don’t matter. For example, “appl” finds “apple”, but “aple” finds nothing. Use it for codes and technical terms. |
The search looks in the Text of the values, and the list shows the best matches.
Dependent lists
Section titled “Dependent lists”Use Filter list when the values of one list depend on the value chosen in another, for example streets that depend on the city.
- Prepare the two dictionaries. In the streets dictionary, set the Group of each street to the Value of its city in the cities dictionary. See Dictionaries.
- Add a List Of Values for the city, and connect it to the cities dictionary.
- Add a List Of Values for the street, connect it to the streets dictionary, and select the city list in Filter list.
In the form, the street list shows only the streets whose Group is the city that the client chose. When the client changes the city, the street is cleared. If only one street matches, it is selected for the client.
A list with Filter list has no default value.
Multi select and default value
Section titled “Multi select and default value”These settings apply to both Tags and Dictionary:
| Setting | What it does |
|---|---|
| Multi select | The client can choose several values. Off by default. Changing this setting clears the default value. |
| Default value | The value that is selected when the form opens. Shown when the list has values and no Filter list. For a dictionary with more values than the limit, type to search for the value (“Dictionary too large, use direct search.”). |
When a transaction is created, a default value that is no longer in the list or the dictionary is ignored.
What the client sees
Section titled “What the client sees”The client opens the list and picks a value. They can type to filter the values. With Multi select, the chosen values are shown as tags in the box.
With AJAX search, the list is empty until the client starts to type. The client types part of the text, and then picks a value from the matches.
The value
Section titled “The value”- Tags: the field saves the text of the chosen value.
- Dictionary: the field saves the Value of the chosen value. Webhooks and the archive receive the Value.
- With Multi select, the value is the chosen values, separated by commas.
The signed PDF shows the Text of the chosen values, separated by commas. In a PDF template, they are printed on one line, so leave enough room for them.
Conditions
Section titled “Conditions”In conditions, a List Of Values supports Equal, Not Equal, Empty and Not Empty. With Multi select, it supports Contains, Not Contains, Empty and Not Empty. See Conditions.
For a Tags list, you select the value from the list’s values.
Dictionary values in conditions
Section titled “Dictionary values in conditions”For a list connected to a dictionary, conditions and conditional values work with the dictionary’s Value, not its Text:
- In a condition on the list, type the Value to compare with.
- To set the list’s value with a conditional value, enter the Value of the item to select.
For example, if a dictionary has the texts “Level 1”, “Level 2” and “Level 3” with the values 1, 2 and 3, enter 2 to select “Level 2”.