/
Create a Select All option in a dropdown list
Create a Select All option in a dropdown list
Listener script
This script listens for a change to customfield_10712 and runs the SelectAllInList.sil script when a change is detected.
lfWatch("customfield_10712", {"customfield_10712"}, "Screen_Listeners/SelectAllInList.sil", "change");
Script
This script is run from the SelectAllInList_watch.sil listener script. It selects all items in a list if the Select All array value is set.
string [] c = argv["customfield_10712"];
string [] colors = {"Black", "Blue", "Brown", "Green", "Orange", "Red", "Yellow", "White"};
if(arrayElementExists(c, "Select All")) {
lfSet("customfield_10712" , colors);
}
, multiple selections available,
Related content
Prevent a select list from displaying certain options
Prevent a select list from displaying certain options
More like this
Prevent a select list from displaying certain values
Prevent a select list from displaying certain values
More like this
Display a message custom field based on a drop-down list value
Display a message custom field based on a drop-down list value
More like this
lfAllowSelectOptions
lfAllowSelectOptions
More like this
Preparing Data for Use with lfRestrictSelectOptions()
Preparing Data for Use with lfRestrictSelectOptions()
More like this
lfRestrictSelectOptions
lfRestrictSelectOptions
More like this