Hello,
I am not good at javascript so I got this button "Save as..." and a javascript messagebox comes up asking if they secure the document before save it:
xfa.host.messageBox("WARNING", "Did you secure the document prior saving it?", 3, 2);
If they say 3 (yes), the javascript code should be apply: app.execMenuItem("SaveAs");
If 2 (no), go back to the document. Anyone can help?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
OK, here's working script.
btnSaveAs::click
if (xfa.host.messageBox("Did you secure the document prior to saving it?", "WARNING",2,2) == 4) app.execMenuItem("SaveAs");
Views
Replies
Total Likes
Something like this, probably:
if (xfa.host.messageBox("WARNING","Did you secure the document prior to saving it?",3,2) == 3) app.execMenuItem("SaveAs");
Views
Replies
Total Likes
Still gives me the option to save as if I click option 2.
Views
Replies
Total Likes
OK, here's working script.
btnSaveAs::click
if (xfa.host.messageBox("Did you secure the document prior to saving it?", "WARNING",2,2) == 4) app.execMenuItem("SaveAs");
Views
Replies
Total Likes