Changing text color on selected field

  • Profile Image
    kimkat2013
    Asked on September 05, 2013 at 10:46 PM

    My form is white lettering on a blue field, but when you are filling out the form the background defaults to white.

     

    Can you tell me how to change color on text when field is selected?

     

    Thanks!

  • Profile Image
    abajan
    Answered on September 05, 2013 at 10:57 PM

    If you're referring to the yellow highlighting of focussed fields, it can be suppressed by going into the form's Preferences (Setup & Embed tab). Go to the Field Styles tab and disable Highlight Effect:

    Do let us know if you need further help.


    Cheers

  • Profile Image
    abajan
    Answered on September 05, 2013 at 11:07 PM

    Actually, if you would like to keep the highlighting but change the color of the text, just add the following rule to the form's injected CSS:

    .form-line-active .form-sub-label {
    color: #000;
    }

  • Profile Image
    abajan
    Answered on September 05, 2013 at 11:12 PM

    Oops! The extra rule should really be

    .form-line-active .form-sub-label,
    .form-line-active #cid_10 label {
    color: #000;
    }