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

Best trigger/event to activate a script given a change in a form field value

Engaged ,
Dec 19, 2022 Dec 19, 2022

I am trying to determine the best trigger or event to use provided on an interactive PDF form to place a script that gets acrivated given a change in value assigned to a text form field by an end user. Your response/suggestions to this post are appreciated. Thank you ahead of time. 

TOPICS
How to , JavaScript , PDF forms
768
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 19, 2022 Dec 19, 2022

It depends on what script is for.

If it depends on that field value you can use validation, but is hard to say without seeing the script.

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
Engaged ,
Dec 20, 2022 Dec 20, 2022

In response to 'It depends on what the script is for.'. Understood but that does not answer the question. For example, I was looking more for what may constitute using the 'on blur' event as opposed to a custom validation script when trying to make this determination. Surely there are certain factors, variables to consider regarding the script used to determine which trigger, event, etc. may be more suitable to place a particular script.  

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
Engaged ,
Dec 20, 2022 Dec 20, 2022

Sorry but for clarification I should have initially posted that I was interested in what criteria may be used in determining whether to place a script in say the 'onBlur' event or use a custom validation script instead. While it's understood it depends on the script, I believe the script needs to meet certain criteria in deciding which trigger or event may be most appropriate.   

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
Engaged ,
Dec 20, 2022 Dec 20, 2022
LATEST

Resolved. No need to answer.

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