Handling Message Box parameters


i want use following code force choice. code simple message box yes or no button. how know button pushed , how can capture use in simple "if" statement. if user selects "yes", want code 1 thing, if "no" selected, code else.

thanks,

stan

xfa.host.messagebox("do want issue report?","prompt",2,2);

hi stan,

try script in exit event:

var action = app.alert(("do want issue report?","prompt",2,2);

if(action == 4)//if yes selected
{ //your action }
else
// other action

regards,

chris fourie
www.intelliform.co.za


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments