0
Community Expert
,
/t5/acrobat-discussions/unselect-all-items-of-a-list-field/td-p/14899832
Oct 05, 2024
Oct 05, 2024
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
TOPICS
JavaScript
,
PDF
,
PDF forms
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 ACCEPTED SOLUTION
Community Expert
,
/t5/acrobat-discussions/unselect-all-items-of-a-list-field/m-p/14900140#M481429
Oct 05, 2024
Oct 05, 2024
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/unselect-all-items-of-a-list-field/m-p/14900140#M481429
Oct 05, 2024
Oct 05, 2024
Copy link to clipboard
Copied
Reset the field:
this.resetForm(["List1"]);
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
bebarth
AUTHOR
Community Expert
,
LATEST
/t5/acrobat-discussions/unselect-all-items-of-a-list-field/m-p/14900821#M481448
Oct 06, 2024
Oct 06, 2024
Copy link to clipboard
Copied
obviously!
Works fine, thanks.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

