Types of parameters for conditions
The following sections detail the types of parameters you can include when creating a condition.
String template parameter
The following table includes syntax examples for a string field in the condition.
|
Parameter |
Example |
|---|---|
|
String template parameter |
RequestResponse |
|
Prepopulate value |
RequestResponse |
|
Required parameter |
RequestResponse |
|
Character limit |
RequestResponse |
Text template parameter
The following table includes syntax examples for a text field in the condition.
|
Parameter |
Example |
|---|---|
|
Text template parameter |
RequestResponse |
|
Prepopulate value |
RequestResponse |
|
Required parameter |
RequestResponse |
|
Character limit |
RequestResponse |
Number template parameter
The following table includes syntax examples for a number field in the condition.
|
Parameter |
Example |
|---|---|
|
Number template parameter |
RequestResponse |
|
Required parameter |
RequestResponse |
|
Unrequired parameter |
RequestResponse |
Enumerated list template parameter
The following table includes syntax for an enumerated list in the condition.
|
Parameter |
Example |
|---|---|
|
Drop-down list template parameter |
RequestResponse |
|
Prepopulate value |
RequestResponse |
|
Unrequired parameter |
RequestResponse |
Multi-select enumerated list template parameter
The following table includes syntax for a multi-select enumerated list in the condition.
|
Parameter |
Example |
|---|---|
|
Multi-select list template parameter |
RequestResponse |
|
Prepopulate value |
RequestResponse |
|
Unrequired parameter |
RequestResponse |
Example with extra options
You can also use additional options to improve the user experience.
let regionsParam = `[[Region(s) | multienum(Africa, North America, Oceania, Asia, Europe, South America) | | { required: true, searchable: true, placeholder: "region(s)" }]]`
-
searchable: trueallows the user to start typing a value to instantly narrow down the list of choices. -
placeholderdefines the instructional text that fills the selection box until the user selects a region.