Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Font Weight & Color Change On Variable Entry

Avatar

Level 2

I have a text entry field that should turn Bold & Red IF an ID >= KK1 and <= LL2 is entered.

Is there a way to do this?

Thanks a million!

1 Accepted Solution

Avatar

Correct answer by
Level 2

Nevermind, I got it all on my own.  Below is the code I wrote to make this field work appropriately:

 

//This will change the font color and weight of the S/Ns that are to be flagged - DNLE

 

  (stg2whl_sn.rawValue > "KK31800" && stg2whl_sn.rawValue < "KK32098"){

stg2whl_sn.fontColor = "139,0,0";

}

else

{

stg2whl_sn.fontColor = "0,0,0";

}

if

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Nevermind, I got it all on my own.  Below is the code I wrote to make this field work appropriately:

 

//This will change the font color and weight of the S/Ns that are to be flagged - DNLE

 

  (stg2whl_sn.rawValue > "KK31800" && stg2whl_sn.rawValue < "KK32098"){

stg2whl_sn.fontColor = "139,0,0";

}

else

{

stg2whl_sn.fontColor = "0,0,0";

}

if