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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Counting Characters and Alerting when close to limit


Level 1

I've created a variable in the hierarchy view called myAlert2

I have added this code to the change event of yellowDescription:

if(yellowDescription.rawValue.toString().length > 1050 && myAlert2 == "NOT"){

 "You may enter about 50 more characters in the Description field.");;




     myAlert2 = "DONE";


This code works, but will provide a messageBox on each keystroke after the condition is met.  I would like to have the alert only come up once. 

0 Replies

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now