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

on clicking button and entering the password correctly hide the button and show Text

New Here ,
May 24, 2020 May 24, 2020

Copy link to clipboard

Copied

I have a button that when clicking it it will Prompt for a password, once the password entered correctly this action should be taken

 

-Lock different Fields 

-Hide the button 

-Display Text

 

the fields locks successfuly others are not

 

switch (resp) {

case pw:

getField(f_prefix).readonly = readonly;

getField(f_prefix2).readonly = readonly;

getField(f_prefix3).readonly = readonly;

app.alert("The fields are now " + readonly_desc + "ed.", 3);

Button1.style.display = display.hidden; //hide button

PartG.IA.Text1.style.display = display.visible; //Show Signuture

 


break;

case null: // User pressed Cancel button

break;

default: // Incorrect password

app.alert("Incorrect password.", 1);

break;

}


})();

 

TOPICS
Acrobat SDK and JavaScript

Views

255

Translate

Translate

Report

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 ,
May 24, 2020 May 24, 2020

Copy link to clipboard

Copied

LATEST

Look at the Javascript console for errors.

Votes

Translate

Translate

Report

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