Copy link to clipboard
Copied
Hi experts
I have a form in which a custom format script is triggered when the document is opened, which causes some fields to be reset unwanted.
According to the documentation the custom format script is a user event, which should only be triggered when the field is activated.
See: https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/index.html#rhhlterm=processing&rhs...
Question: is it a bug or a normal and expected behavior?
I could possibly share the file privately (it's a client's file).
Thank you
Acrobate du PDF, InDesigner et Photoshoptographe
1 Correct answer
I want to correct my reply from above. Format scripts are triggered, it seems, when the file is opened, although it's counter-intuitive.
Copy link to clipboard
Copied
This is normal when the value has changed. To display the value in the field it must formatted.
Copy link to clipboard
Copied
Thank you.
So Foxit Reader has a different behavior than Acrobat Reader since it doesn't trigger custom format scripts on opening.
I spent a lot of time figuring out which of the two was bugging (my client's agents use both).
Acrobate du PDF, InDesigner et Photoshoptographe
Copy link to clipboard
Copied
Format scripts are not normally triggered just by opening the file. They are triggered when the value of the field changes.
So unless you use a script to change the value of the field when the document is opened, that should not happen.
Copy link to clipboard
Copied
I want to correct my reply from above. Format scripts are triggered, it seems, when the file is opened, although it's counter-intuitive.
Copy link to clipboard
Copied
There is nothing that change any value in my startup JavaScript…
Acrobat does it but not Foxit, it drives me crazy!
Acrobate du PDF, InDesigner et Photoshoptographe
Copy link to clipboard
Copied
Can you share your file?
Copy link to clipboard
Copied
Thank you
Acrobate du PDF, InDesigner et Photoshoptographe

