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

Passing required as part of the schema without using the built-in errors #4102

Open
1 task done
rae-shaw opened this issue Feb 23, 2024 · 2 comments
Open
1 task done

Comments

@rae-shaw
Copy link

rae-shaw commented Feb 23, 2024

Screenshot 2024-02-23 at 12 12 19 PM

Prerequisites

What theme are you using?

core

What is your question?

I am currently integrating a widgets for the ui form components. I want to use custom ui error messages when a form isn't filled out or isn't filled out properly. Is there a way to use customized error messaging? I would like it to look like the error messaging in the screenshot.

Alternatively, the fields I am using have that ui error messaging built in, but we would need to use state to check that the value is correct/has been entered. Is there a way to do this?

@rae-shaw rae-shaw added needs triage Initial label given, to be assigned correct labels and assigned question labels Feb 23, 2024
@nickgros
Copy link
Contributor

You can use custom error messages by transforming a subset of your errors by implementing transformErrors. See docs for custom error messages.

@heath-freenome heath-freenome added awaiting response and removed needs triage Initial label given, to be assigned correct labels and assigned labels Feb 23, 2024
@nickgros
Copy link
Contributor

You may also consider using Custom Templates to hide errors where your custom widget may already handle them

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

No branches or pull requests

3 participants