Is there a way to change the display name of an input? #2101
Unanswered
lifenautjoe
asked this question in
Q&A
Replies: 3 comments 1 reply
-
because MUI use the |
Beta Was this translation helpful? Give feedback.
0 replies
-
The error message us obtained from react-form-hook ‘errors’ as
errors.fieldName.message and it contains the field name in the string as
seen on the screen capture
…On Tue, 7 Jul 2020 at 10:26, Bill ***@***.***> wrote:
because MUI use the name?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2101 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBFXZJMMNHBWT7QGCVY6W3R2LL2FANCNFSM4OSSAV4Q>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes but then it would defeat one of the big pros of having integration with
validators such as Joi which have extensive error messages built in.
I would have to write a custom error for all kinds of validations again.
Is it correct to assume this functionality is not there? To provide a name
and displayName attribute to be used in out-of-the-box error messages ?
…On Tue, 7 Jul 2020 at 10:29, Bill ***@***.***> wrote:
you can customize the error message then.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2101 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBFXZLNGBEUTJNZT6CY25DR2LMHXANCNFSM4OSSAV4Q>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My error messages look like this
Is there any way to specify a different displayName rather than using the input name to display error messages?
Beta Was this translation helpful? Give feedback.
All reactions