These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Prevent Users from oversaving form using the Close option

EJR
Registered: Aug 27 2007
Posts: 23

I have an interactive form that is submitted via email. When saving a completed they get the Save As dialog box that prevents them from saving over the original form. However, what happens is that they have completed the form and then used the Close button at the top right which prompts them to Save Before Closing and is they choose yes replaces the original form.

Thanks for Any Help,

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hello,

you can avoid overwriting the form when closing the form.
The trick is to control the 'dirty flag'.
It tells the application, if a change has been made to the form.
If so, you're asked if you wish to save changes.
You can reset the flag with a script.

var MyDoc = event.target;MyDoc.dirty = false;

This is only the base script.
You will have to bundle it with an events the user will generally use/create/do.

I made a example form for this task.
[url]http://thelivecycle.blogspot.com/2009/11/control-appearance-of-save-changes.php[/url]

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs