You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot validate that two fields match (password/verify password, etc) because the validators are only run for the individual fields. Is there a way to trigger validation across all fields or even to manually set invalid state so i can manage it myself?
this would be great, setFieldValidity('fieldName', false)
The text was updated successfully, but these errors were encountered:
Hi @keeganstothert – I don't believe it's currently possible to trigger validation across all fields because validation requires a change/blur event that is only available when a user interact with an input. This library also falls back to HTML5 validation if a custom validate function isn't specified, but that also (currently) requires access to the DOM node which is only accessible via the change/blur event itself.
That said, I think it might be actually possible to expose something like setFieldValidity so that you can manage the validation state manually! I'll look into that soon! 👍 In the meantime, could you please give me an example of how something like setFieldValidity would solve your use case (validating matching fields)?
I cannot validate that two fields match (password/verify password, etc) because the validators are only run for the individual fields. Is there a way to trigger validation across all fields or even to manually set invalid state so i can manage it myself?
this would be great,
setFieldValidity('fieldName', false)
The text was updated successfully, but these errors were encountered: