PDF Form - code to lock form fields on submit BUT NOT if *required fields are not complete
I have a form that has required fields and some javascript for required fields - for example "if NO is selected then make comments box required"
I'm using a submit by email button to submit the form... I also put in some script to lock the fields to make them read only on submit.
The problem I'm having is, if certain required fields are not complete when the submit button is clicked, the notification pops up to say some required fields are not complete, but it still locks the form so they cannot go back and add in the other information.
So I'm looking for a IF THAT THEN THIS scenario.
1. IF required fields are complete... THEN lock fields and submit the form
2. IF required fields are incomplete... THEN do not lock or submit ... allow more information to be added
Can anyone help me with button code?
I'm a Javascript newbie so please be gentle with me ![]()
thanks in advance
[Moved from non-technical Forum Lounge to specific Program forum... Mod]
[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]
