Copy link to clipboard
Copied
I have Acrobat Pro 2017
i created a form with s few fields password protected for internal use. i also put a reset form botton. when i tested it out - the reset form button requires the password for the protected fields. Fair enough- that makes sense.
So... whats the work around so the reset form button actually clears the entire form without entering the password 7 times! ? ! ?
if that is the only option, ok. but surely there is another way...
thank you!! LA
Copy link to clipboard
Copied
What settings does you use at the password protection?
Copy link to clipboard
Copied
Custom Validation scrpit
event.rc = (app.response("Enter the password to edit this field:", "", "")=="1234");
this is not anything that needs major security - its only to help cut down on errors on internal data entry. two groups of people using the form - and one group will have password. not high level - just basic stuff but currenlty its handwritten form and terrible!
Copy link to clipboard
Copied
Set a variable before the form reset.
Ask for the password only if the variable is not set.
Copy link to clipboard
Copied
thank you!!
so currently it is only the default
doc.resetForm()
how do i build that varible? i have no skills! just bumbling thru all this!
Copy link to clipboard
Copied
At document level use:
var during_reset = false ;
At the reset button:
during_reset = true;
resetForm();
during_reset = false;
Copy link to clipboard
Copied
thank you!
I am not doing something correct - it still asks for the password on the fields that are password protected.
here is now when i added to the individual field validation:
event.rc = (app.response("Enter the password to edit this field:", "", "")=="1234");var during_reset = false;
---Do i need to put the var during_reset=false; at a different place in the event line? it is still asking for the password if there is data in the field -when hitting reset button evem after adding your statements above.
thank you in advance for helping me!
Copy link to clipboard
Copied
Set the variable at document level:
At the text fields use:
event.rc = during_reset || (app.response("Enter the password to edit this field:", "", "")=="1234");
Copy link to clipboard
Copied
++ Adding to the discussion
Acrobat 2017 is an EOL application. For more information, please go through the help page https://helpx.adobe.com/acrobat/kb/end-of-support-acrobat-2017-reader-2017.html
~Amal
Copy link to clipboard
Copied
ok. thank you.
that said - we will be upgrading to the curent version - so how will that impact my forms i am creating now? will it translate into the latest version? Just curious.
Copy link to clipboard
Copied
" so how will that impact my forms i am creating now?"
It won't make any difference.