-
adharamoveisAsked on September 8, 2014 at 10:34 AMI would like to know how do I change the color of the border and background of the text box (not the notification, but the box where we typed) when the field is blank or filled in incorrectly.Thanks for everything
-
Ashwin JotForm SupportReplied on September 8, 2014 at 11:40 AM
Hello adharamoveis,
Basically in case of validation error you need to display the border color and back ground of the form fields in a different color. Is that correct?
I did check your last edited form and found that you have almost achieved your requirement except the background color of the text box. Please check the screenshot below:
Please replace the injected custom css code from your form with the following custom css:
.form-line-error { background: transparent; }
.form-line-error { color: #FFCC00; }
.form-error-message, .form-button-error { display: none; }
.form-label-left, .form-label-right, .form-label-top { display:none; }
.form-line-error input:not(#coupon-input), .form-line-error textarea {
border: 2px solid #FF3030;
-moz-box-shadow: 0 0 0px #FF3030;
-webkit-box-shadow: 0 0 0px #FF3030;
box-shadow: 0 0 0px #FF3030;
background-color: bisque;
}
Please change the "bisque" to any desired color. The following guide should help you in injecting the custom css code: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes
Hope this helps.
Do get back to us if you need any other changes.
Thank you!