List of the configuration fields an administrator fills in for a funnel trigger or action type, passed into the app's fields JS function so it can declare its own fields. Apps add fields by calling addField on the list they are given, either from a compact semicolon-separated configuration string or by setting the name, help text, required flag and options explicitly.
Extends: ArrayList
Methods
addField(String name, String options)
Returns: JourneyFunnelFieldsList
Adds a field parsed from a compact, semicolon-separated configuration string, for example "type=integer;required=true;options(a,b,c);help=Pick one".
| Parameter | Description |
|---|---|
name | the field's name |
options | the semicolon-separated configuration string, may be null |
addField(String name, String text, boolean required, List<String> options)
Returns: JourneyFunnelFieldsList
Adds a field built explicitly from its name, help text, required flag and list of selectable option values.
| Parameter | Description |
|---|---|
name | the field's name |
text | the help text shown to the administrator filling in the field |
required | whether the field must be given a value |
options | the selectable option values for the field |