2 Replies Latest reply on Oct 21, 2014 5:19 AM by sjaik

    Make a document script not run automatically


      I have a document level script, which populates a field with a unique number automatically and this happens if the field is empty when the document is opened.


      My problem is this, when i have written in the javascript code in the texteditor and i press close, the code runs automatically and fills out the field. If i then go ahead and close the PDF it asks me if i want to save the changes, if i press yes the PDF is saved with the newly generated number and code, if i press no its saved without the code i implemented, niether being what i want.


      I need some way to save the document with the code implemented, but without it being run immediately upon implementation.


      It's a RMA PDF document customers needs to fill out on a website.


      Best regards,