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

Change font color in PDFs form

New Here ,
Dec 08, 2023 Dec 08, 2023

Copy link to clipboard

Copied

HI I want to be able to have number change colors if the value is 0 its green and anything above is red. Can this be accomplished in the properties of a form that needs to have numbers. Please advise. 

TOPICS
PDF , PDF forms

Views

405

Translate

Translate

Report

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 08, 2023 Dec 08, 2023

You will have to use a script to achieve that, in the field properties under 'Validate' tab → 'Run custom validation script' enter this:

event.target.textColor = event.value > 0 ? color.red : color.green;

Votes

Translate

Translate
Community Expert ,
Dec 08, 2023 Dec 08, 2023

Copy link to clipboard

Copied

You will have to use a script to achieve that, in the field properties under 'Validate' tab → 'Run custom validation script' enter this:

event.target.textColor = event.value > 0 ? color.red : color.green;

Votes

Translate

Translate

Report

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 ,
Dec 08, 2023 Dec 08, 2023

Copy link to clipboard

Copied

LATEST

You are a life saver!!!! THank you Nesa!

Votes

Translate

Translate

Report

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