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.

Global fill color change

Avatar

Former Community Member

Is there a way to have the color change in a field for all fields on a form on entry and exit without having to code a hundred fields individually.

Example:

On enter: this.fillColor = "164,222,171";

On exit: this.fillColor = "250,250,250";

I want all the fields on the form to do this, but with over 50 fields it seems very time consuming.

Thanks.

8 Replies

Avatar

Level 8

Are you doing this just so that people know which field they're in?  If so why not just click the highlight fields button on the top right.

Avatar

Former Community Member

I want to choose a different fill color and that shows all fillable fields, not the one you are currently in.

Thanks.

Avatar

Former Community Member

Right, but I want to only highlight the field you are in, showing the user where they are on the page.

Thanks again.

Avatar

Level 5

If Names of the textfields are in sequence then it can be done easily and all the text fields should be under the same subform ..example : textField1,textField2,textField3

Avatar

Former Community Member

They are in sequence Cal1, Cal2 etc. All in a subform. Can this be done easily? If so how?

Thank you.