Set dynamic value for Multi-Select widget (COMPLETE)
AnsweredDoes anyone know of a way of dynamically setting or clearing the selected items in a Multi-Select. When I try my form crashes.
-
Official comment
Hi everyone. In iForm 7.5 you can now set the dynamic value of a multi-select using an array of options like the example below. The options in quotes are the key values of the options desired to be selected.
["red", "green", "blue"]
Comment actions -
Hi Tony,
My form has a select with an associated multi-select,
i.e. Does the tree have a planting defect Y/N ? then a multi-select to allow setting the defect type(s), the multi-select is hidden if the user selects No. What I was trying to do was clear any previous multi-select entries if the user goes back and changes Y to N.
My multi-select has 13 options, if I put
if( test_field > 0 ) {0}
in the dynamic value the form crashes.
I raised a zendesk but Joe wasn't sure of a way to do it.
Thanks,
Phil
Please sign in to leave a comment.
Comments
7 comments