0
/t5/acrobat-sdk-discussions/when-submitting-form-and-there-are-required-fields-how-to-show-list/td-p/10574940
Jul 11, 2019
Jul 11, 2019
Copy link to clipboard
Copied
when there are several fields required that are not filled out, how can i either list in the alert the fields and / or take the user to the first required field with a focus?
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Jul 11, 2019
Jul 11, 2019
You would need to do the validation using a script. I've posted code on the JavaScript forum that does it. Try searching for "validate required fields" and you're sure to find it.
2
Replies
2
Community Expert
,
/t5/acrobat-sdk-discussions/when-submitting-form-and-there-are-required-fields-how-to-show-list/m-p/10574941#M10889
Jul 11, 2019
Jul 11, 2019
Copy link to clipboard
Copied
You would need to do the validation using a script. I've posted code on the JavaScript forum that does it. Try searching for "validate required fields" and you're sure to find it.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Adobe Employee
,
LATEST
/t5/acrobat-sdk-discussions/when-submitting-form-and-there-are-required-fields-how-to-show-list/m-p/10574942#M10890
Jul 15, 2019
Jul 15, 2019
Copy link to clipboard
Copied
Here it is Re: Check to see if any field is empty
-Akanchha
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more