Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Fill border change color

Avatar

Former Community Member

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!