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

Change font color based on text entered

New Here ,
Jan 27, 2021 Jan 27, 2021

Copy link to clipboard

Copied

Hello, 

I am creating a form where I have text fields that I want the text color to change when the number entered is > 9, = 10 or more and <20. I have tried other scripts shown in the help forum but those didn't work see below

if(event.value <= 9){
event.target.textColor = color.black;}
else if (event.value == 10){
event.target.textColor = color.yellow;}
else if(event.value >= 11){
event.target.textColor = color.red;}

TOPICS
How to

Views

195

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
Community Expert ,
Jan 27, 2021 Jan 27, 2021

Copy link to clipboard

Copied

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 ,
Jan 27, 2021 Jan 27, 2021

Copy link to clipboard

Copied

LATEST

Adobe Acrobat DC 

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