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.
Question: is it a bug or a normal and expected behavior?
I could possibly share the file privately (it's a client's file).
This is normal when the value has changed. To display the value in the field it must formatted.
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).
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.
I want to correct my reply from above. Format scripts are triggered, it seems, when the file is opened, although it's counter-intuitive.
Acrobat does it but not Foxit, it drives me crazy!
Can you share your file?