Hi,
When I open a reader enabled form and close it without doing anything it prompts "Do you want save changes to <filename> before closing?". How to get rid of this? I tried the below code in the layout ready event of a button but still no effect.
event.target.dirty=false;
event.target.requiresFullSave=false;
Any solution is greatly appreciated. Many thanks in advance.
Views
Replies
Total Likes
You can create a close Button with this script in its click event.
Views
Replies
Total Likes
Hi radzmar,
The message pops out when I click on the close button in the adobe reader. How to avoid that?
Thanks.
Views
Replies
Total Likes
The script you already use
is the only way to avoid that.
If it doesn't work, then because of any other script, that is executed also in the layoutReady event that causes to change the dirty flag back to true.
Views
Replies
Total Likes
Is there any way out of it? I need the script in the layoutReady event as well. Kindly help.
Views
Replies
Total Likes
What's the other script you use and why?
Views
Replies
Total Likes
The script that is used is for the page numbering (the page n of m element in the livecycle designer). Also script to display/hide a field based on some selection when the form is reopened.
Views
Replies
Total Likes
The show/hide script in the layoutReady event is the problem as it dirties the form permanently.
You should use another event to control the visiblity, like the change event.
Views
Replies
Total Likes
Removed all the script in the layoutReady event but the message is still displayed. Kindly help.
Views
Replies
Total Likes
Can you share your form please?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies