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

Fill border change color

Avatar

Level 3

This should be simple...I'm trying to show a border around the field that is entered into and have the border disappear after the cursor moves to the next box.

1 Reply

Avatar

Level 10

Hi,

you'll need two scripts.

This one in the enter event of the field:


this.border.edge.color.value = "233,0,0";


this.border.edge.thickness = ".5mm"


And this one in the exit event.


this.border.edge.color.value = "0,0,0";


this.border.edge.thickness = "0mm"


Hope this helps!