All the fields marked required are in red when the form loads since they are blank. How do I change this so that they only turn red (check validation) if/when someone leaves a particular field. This is specific to Alpaca forms.
$(document).ready(function() {
$("#form").alpaca({
"schema": {
"title":"User Feedback",
"description":"What do you think about Alpaca?",
"type":"object",
"properties": {
"volunteer_name": {
"type":"string",
"title":"Name of Civic Tutor",
"required":true
},
}
}
});
});
Oh, there's actually a very simple solution to this. Just add a "options": {"hideInitValidationError":true,....} to your form.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With