...
Description
Excerpt |
---|
Restricts the list of given options of the field a field's selectable values to the list of options given as a parameter of the routine. |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
field | Stringstring | Yes | Field to restrict options for |
options | Stringstring[] | Yes | List of remaining options |
triggerChange | Boolean | No | If set to "true", it triggers the change event on the field when a routine is used |
Example - restricting users to select certain values in the field options
...
options
...
Code Block |
---|
lfAllowSelectOptions("priority", {"MajorMedium", "MinorHigh"}); //where field = "priority" and options = "MajorMedium" and "MinorHigh" |
If you want to trigger the change event on the field when using the lfAllowSelectOptions routine, you can use the optional triggerChange parameter set to true:
...