Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Custom format script trigger

Community Expert ,
Dec 05, 2020 Dec 05, 2020

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
TOPICS
Acrobat SDK and JavaScript
670
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 07, 2020 Dec 07, 2020

I want to correct my reply from above. Format scripts are triggered, it seems, when the file is opened, although it's counter-intuitive.

Translate
Community Expert ,
Dec 05, 2020 Dec 05, 2020

This is normal when the value has changed. To display the value in the field it must formatted.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2020 Dec 05, 2020

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2020 Dec 05, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2020 Dec 07, 2020
LATEST

I want to correct my reply from above. Format scripts are triggered, it seems, when the file is opened, although it's counter-intuitive.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 06, 2020 Dec 06, 2020

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 06, 2020 Dec 06, 2020

Can you share your file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2020 Dec 07, 2020

Thank you


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines