Copy link to clipboard
Copied
I tryed to unselect via javaScript all items of a list field setting "currentValueIndices" to -1 but it seems that doesn't work.
The setting works fine to indicate the selected item(s) with a number or an array, but doesn't work for unselect all of them, whereas -1 is the value returned if no items are selected...
Is there an other way to do?
Thanks
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Reset the field:
this.resetForm(["List1"]);
Copy link to clipboard
Copied
obviously!
Works fine, thanks.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now