Select a field and it turns white

  • catbahaicamp
    Asked on March 11, 2018 at 11:15 PM

    Hi, I have somehow created a color change when you click on a form field. I don't know how it happened but it's there and I need some assistance to find where it's happening.


    Jotform Thread 1411841 Screenshot
  • onurc JotForm Developer
    Replied on March 12, 2018 at 3:45 AM

    Hi,

    In order to cancel this active css property, you need to add following css code block under your Form Designer CSS Tab.

    .form-line-active{

    background:none !important;
    }

    1520840681Screen Shot 2018 03 12 at 10 Screenshot 10


    This css block is going to resolve your issue.

    If you have any question or comment, please let us know.

    Kind regards!

  • catbahaicamp
    Replied on April 10, 2018 at 11:22 PM

    Hi, I'm still having some trouble with the error message. I've been trying to get the colors to be balanced / legible on error.  I cleaned up a lot of duplicative code from the body, but i just can't seem to figure out which piece is applying here.

    I tried adding in all these but they didn't work:


    .form-input-widejf-required {

        background-color : #ffb148;

        color : black;


    .form-line-error {

        background-color : #ffb148;

        color : black;

    }


    .form-error-message{

        color: #0e2f44 !important;

    }

  • Scott JotForm Developer
    Replied on April 11, 2018 at 4:46 AM

    Hey there,

    If you delete the CSS codes you have shared below and add this snippet:

    .form-line-error .form-error-message {

        background: #0e2f44;

        color: #ffb148;

    }

    The error messages will look like this:

    1523436348Screen Shot 2018 04 11 at 11 Screenshot 10

    If this is not the look you are after, please give more details to able us to help you better,

    Cheers!

  • catbahaicamp
    Replied on April 12, 2018 at 2:29 AM

    Actually I was trying to change the color of the yellow text like "address" when it hits the error condition the error message itself was ok

    Thanks!

  • liyam
    Replied on April 12, 2018 at 6:13 AM

    Hello catbahaicamp,

    You can just simply change the color hex value that was provided by Scott and it should resolve the issue. In any case, feel free to let us know if you have additional questions or other concerns.

    Thanks.

  • catbahaicamp
    Replied on April 12, 2018 at 7:25 AM

    Yeah, that wasn't it. That changes the error message in the upper right, and i was ok with that.  It was the main primary text on the input box description that I was trying to change.


    I tried picking a better background color and it's showing more legibly so i'm good with it.

    i added this back in to cover it:

    .form-line-error {


        background-color : #f45642;

    }


    thanks!

  • Scott JotForm Developer
    Replied on April 12, 2018 at 8:32 AM

    Hey,

    A little late but you can adjust the label colors on the error state by this snippet:

    .form-line-error label.form-label {

        color: white;

    }

    Let us know if you ever need anything else!

    Cheers.