Changing label font color and background color when the form field is active

  • Profile Image
    Onika_g
    Asked on October 06, 2015 at 04:59 PM
  • Profile Image
    Jan
    Answered on October 06, 2015 at 07:03 PM

    Would you like to change the label's font color or the background color of the form field when it is active?

    If you want to change the label's font color, then please use this custom CSS code.

    .form-label-top, .form-label-left, .form-label-right {

        color: #000000 !important;

    }

    If you want to change the background of the form field when the it is active, then you can use this one.

    .form-line-active {

    background-color: transparent !important;

    }

    You can choose any color want in the background color. If you want to turn the highlighting off, then you can use the transparent value.

    Here's a guide on how to inject custom CSS code if you need one.

  • Profile Image
    abajan
    Answered on October 06, 2015 at 07:22 PM

    @Onika_g

    In addition to my colleague's suggestions, In case you were referring to the light-yellow background on fields when they have the focus and also on the light-pink background when required fields are not filled, the following would fix these issues:

    1. Go to the Field Styles tab of the form's Preferences and disable the effect:


    2. That removes the light-yellow highlight. To remove the light-pink highlighting on unfilled required fields, inject the following CSS:

    .form-line-error {
      background: transparent;
    }

    When done, your form should behave like this clone. However, if we have not properly addressed the issue, please inform us.


    Thanks