I am still a bit new to LiveCycle and very new to scripting. Is there a way were I can set my form to exit automatically when the print button is selected? So the form is filled out, user hits print button, the form print and exits (form closes, doesn't have to save data) Any assistance would be greatly appreciated. Thank you.
Solved! Go to Solution.
Views
Replies
Total Likes
There is a command to close the current doc:
event.target.closeDoc(true);
The true indicates that the doc will be closed without forcing a save .....if false then a dialog will pop up asking the user to save if any changes to the doc have been made.
Note that this will only close the current doc. Acrobat/Reader or the browser are still open....and I do not think you can automatically close those as they are running your script.
Paul
Views
Replies
Total Likes
There is a command to close the current doc:
event.target.closeDoc(true);
The true indicates that the doc will be closed without forcing a save .....if false then a dialog will pop up asking the user to save if any changes to the doc have been made.
Note that this will only close the current doc. Acrobat/Reader or the browser are still open....and I do not think you can automatically close those as they are running your script.
Paul
Views
Replies
Total Likes
If the PDF is opened in browser it won't close by script, it will give an error, also, if your PDF is not interactive or the Reader has Javascript turned off it won't close either.
Views
Replies
Total Likes
Ok after I found where I should put this script and it works, its didn't close Adobe reader as you said but it works. Thanks for your help!
Views
Replies
Total Likes
Ok after I found where I should put this script and it works, its didn't close Adobe reader as you said but it works. Thanks for your help
Views
Replies
Total Likes