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

How to change the field background color after data is entered in the text field for Adobe Acrobat DC?

New Here ,
Mar 08, 2017 Mar 08, 2017

How to change the field background color after date is entered in the text field for Acrobat Adobe DC?

I would like the background color to be changed to yellow when text in entered into the field.

Thank you.

TOPICS
Acrobat SDK and JavaScript , Windows
633
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 ,
Mar 08, 2017 Mar 08, 2017

Use this code as the field's custom Validation script:

event.target.fillColor = (event.value=="") ? color.white : color.yellow;

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
New Here ,
Mar 08, 2017 Mar 08, 2017
LATEST

Thank you very much!

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