Skip to main content
Participant
May 24, 2020
Question

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

  • May 24, 2020
  • 1 reply
  • 345 views

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;

}


})();

 

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
May 25, 2020

Look at the Javascript console for errors.