Skip to main content
Bruce Dunnan
Siteglide Cowboy
Asked a question last year

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?

Where am I?

In Siteglide Community Forum you can ask and answer questions and share your experience with others!

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?

Related Questions

No related questions.