Skip to main content

Validation
0 followers
0 questions
0 posts

Do you have questions about Validation?

Log in to ask questions about Validation publicly or anonymously.

Matt JonesSiteglide
Liquid and GraphQL Developer
Is there a way to (re)validate a form's input fields individually? I know we can initiate JS validation when submitting a form, but once error alerts are in place, it would be nice to have a way to remove those alerts (re-validate fields with existing errors) as each field is subsequently corrected by the user. Is this possible?

Good question Bruce!

I think what you're hoping to do is remove the "input-error" class on the fields that have failed Siteglide validation - once your own JavaScript  validation has re-validated them?

Does that help?