Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
15

reset form with password protect fields

Community Beginner ,
Nov 22, 2023 Nov 22, 2023

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

TOPICS
How to , PDF forms
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 22, 2023 Nov 22, 2023

What settings does you use at the password protection? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 22, 2023 Nov 22, 2023

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! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 22, 2023 Nov 22, 2023

Set a variable before the form reset. 

Ask for the password only if the variable is not set. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 22, 2023 Nov 22, 2023

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 22, 2023 Nov 22, 2023

At document level use:

var during_reset = false ;

 

At the reset button:

during_reset = true;

resetForm();

during_reset = false;

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 22, 2023 Nov 22, 2023

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! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2023 Nov 23, 2023
LATEST

Set the variable at document level:

Bild9.jpgexpand image

At the text fields use:

event.rc = during_reset || (app.response("Enter the password to edit this field:", "", "")=="1234");

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 22, 2023 Nov 22, 2023

Hi @Lana33791331lm4o 

 

++ 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

Regards
Amal
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 22, 2023 Nov 22, 2023

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.  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2023 Nov 23, 2023

" so how will that impact my forms i am creating now?"

It won't make any difference.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines