I am creating forms with FormKit
and using the Schema
to build up the forms.
We need to make it so the required
validation rule is a generic message This field is required
, rather than [field] is required
Is there a way to globally update that, rather than having to pass this to every field?
Yes, you can change this by overriding the global config. Wherever you are registering FormKit:
This was pulled from the docs here: https://formkit.com/essentials/validation#global-validation-message