Help with Script
using script below on click event button in order open subform passsword.
the problem have when click button , password required window appears if click cancel buttom close window
does not allow me so....
how can fix that?
thanks
var flag = false; while (flag != true){ var checkpw = xfa.host.response("password required", "password required", "", 0); if (checkpw == "123"){ form1.pagec.all_hr_sub.presence = "visible"; flag = true; } else { if (checkpw == ""){ flag = true; } else { xfa.host.messagebox("wrong password, please try again!", "",0,0); } } }
i think problem while loop, looks there's no way escape it. think you'd have put check in see if hits cancel button.
or, simplify!
var dialogtitle = "enter password";
var reply = app.response("enter password edit section.", dialogtitle);
if (reply == "password"){
stuff;
}
else {
other stuff;
}
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment