Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the default error message #217

Open
darrenw-npi opened this issue May 24, 2023 · 0 comments
Open

Setting the default error message #217

darrenw-npi opened this issue May 24, 2023 · 0 comments

Comments

@darrenw-npi
Copy link

Firstly thank you for a great library! It's already been super helpful.

I just have a quick question / feature request please...
At the moment if the user neglects to enter a value they are presented with a message along the lines of
The {{fieldName}} field is required by the following logic: {{logic}}

Is there a way to change this message please? Perhaps in a config file or something? I would like to make the message conform to our existing error handling within the app and remove the reference to the logic which would be confusing for our average user. I realise I can override the error message on the [RequiredIf] property but I would rather do it once for all of the properties if possible to reduce the administrative overhead and complexity in managing these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant