Hi,
I have a form that our users complete, then print, but do not save. Some of them have closed the form down before printing. As I have hidden the menu buttons (they are builders, who dont use their pcs much), they lose all the information.
Is there away I can ask them if they are really ready to close the document. So far I can get the close element to work, but when they click cancel it still closes. I am doing this on the javascript option document action - when document closes: - I do not want them to be able to save the file or be given the option to save the file.
The code I have so far is:
var cMsg = "Are you ready to close this form?"
var nRtn = app.alert(cMsg,1,2);
if(nRtn == 3)
{ // A Yes Answer
// Just close the form
event.target.dirty = false;
}
else if(nRtn == 2)
{ // A No Answer
// Do not close the document
event.target.close = false; - THIS IS WHERE I AM STUCK
}
Have spent a few hours looking but to no avail - could somebody please help me, or guide me in the right direction. Much appreicated.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com