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, How to, PDF forms

Views

120

Likes

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

Copy link to clipboard

Copied

LATEST

Look at the Javascript console for errors.

Likes

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