Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

New Form Creation Question

Avatar

Level 4

I have my form created with all the information I need in it. I also have my TAB order the way I need it to be. My question is, is there a way for me to make the current field I'm in be highlighted a certain color so the person filling out the form will know where they are at quickly instead of looking for the blinking curser? I'd rather have the field highlighted a color. Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 7

Here's a link to an RGB color chart, if you know the RGB code for your shade of pink you can just set the exit RGB code to that.

http://www.tayloredmktg.com/rgb/

View solution in original post

3 Replies

Avatar

Level 7

Sure, on the enter event you could type in:

this.border.fill.color.value = "0,255,0";

to turn the background green, for example, and then on the exit event of the same field:

this.border.fill.color.value = "255,255,255";

to change the background back to white when the user leaves the field. You'll need to set the scripting language to javascript for these to work.

Avatar

Level 4

GREAT! Thanks...it works great & that's exactly what I wanted to happen!

Is there a list of color codes so I can play around with the colors to see which one looks best? Right now, the document is a pink color. When I exit it turns it to white, is there a way for it to go back to the original color? Thanks again!

Avatar

Correct answer by
Level 7

Here's a link to an RGB color chart, if you know the RGB code for your shade of pink you can just set the exit RGB code to that.

http://www.tayloredmktg.com/rgb/