Info | ||
---|---|---|
| ||
This routine is available starting with Power Scripts™ v3.0.2 (server) and above. |
Info | ||
---|---|---|
| ||
Please note that this routine can only be used with: Select List (single choice), Select List (multiple choices), Checkboxes, Radiobuttons custom fields. If you wish to use this kind of functionality with Select List (cascading), consider using a custom cascading select field found in this tutorial: Create custom cascading select field. |
Syntax
lfAllowSelectOptions(field, options[, triggerChange])
...
Code Block |
---|
lfAllowSelectOptions("priority", {"Medium", "High"}); //where field = "priority" and options = "Medium" and "High" |
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:
Code Block |
---|
lfAllowSelectOptions("customfield_10000", {"option1", "option2"}, true); //where field = "customfield_10000" of type select list, options = "option1" and "option2" and triggerChange = true |
...