Avatar

Correct answer by
Level 10

I put a button beside the image field that teh user can click to activate it. On the Initialize event of the Image field set the access to "readOnly" (ImageField1.access = "readOnly". Then on the click event of the button use code like this:

var pswd = app.response("This image is protected by a password. \n Please enter a valid password.");

if  (pswd == "password"){

   ImageField1.access

= "";

} else

{

     app.alert("You entered an invalid password!")

}

Paul

View solution in original post