How can I change the background color of the fields when a user does not fill out a required field?

  • cleanram7
    Asked on January 27, 2017 at 10:13 PM

    I want to change the background color of the "required" text fields as well as the red rectangle that comes up with the "This field is required." message. How can I do that? Please see attached screenshot by RED arrows.

     

    Thank you.

    Jotform Thread 1049082 Screenshot
  • John_Benson
    Replied on January 28, 2017 at 6:26 AM

    If I understand you correctly, you want to change the color of the background of the field if the user leave it blank. See the image below:

    How can I change the background color of the fields when a user does not fill out a required field? Image 1 Screenshot 30

    If yes, please add this custom CSS code:

    .form-line-error { 

        background: red !important;

    Here's a guide on: How-to-Inject-Custom-CSS-Codes.

    Result:

    How can I change the background color of the fields when a user does not fill out a required field? Image 2 Screenshot 41

    Hope this answers your question. 

  • cleanram7
    Replied on January 28, 2017 at 3:22 PM