bugy / script-server

Web UI for your scripts with execution management
Other
1.55k stars 246 forks source link

Multiselect field: allow multiple default values from script #585

Open bugy opened 1 year ago

bugy commented 1 year ago

At the moment, script server supports default value, which can be initialized by a script, e.g. "default": { "script": "echo 123" } will set default to 123

However, for a multiselect list, it will work only for a single value. It should be possible to set multiple default values from script, if it's a multiselect parameter. All values should newline separated

Reported by @MNeill73

sbalakrishna commented 1 year ago

Hi @bugy , please let me know how to use this feature?

bugy commented 1 year ago

Hi @sbalakrishna, if a script returns new-line separated values, they will be treated as separate values, in case of a multiselect parameter type