-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Field validation errors for Radio Group and Checkbox Group #5390
Comments
@aagonzales Cool! What is the behavior when the text for a checkbox item is long, causing the text to wrap? I would assume the box grows and the icon remains top right |
Hello! Are we aware of any implementation of this that can be shared with other teams? Or do we know the timeline when this will be delivered as part of the carbon components? We are looking into accessibility compliance for CPD Lite 3.5 release, and this is one of the requirements for forms. |
@aagonzales - Just wanted to confirm that the error text is supposed to be |
Hi, I wanted to check what the status on this issue is, since we just ran into the same issue that we need to mark Checkboxes / Radio buttons in a complex form as invalid and there were no other information since November? |
Hello! I wanted to check the status of this issue as well. Can we expect the implementation anytime soon? |
Hi, at the moment this is not on our roadmap. I'm not sure when this issue will be prioritized, our hands are quite full right now with other a11y related refactor and v11 changes. We would welcome a PR from anyone who needs this enhancement soon. 🙂 |
Hello, are there any updates on this item? We are approaching a year since the last post. We received a design spec that is requesting an error indicator for a checkbox group. Thanks 🙂 |
Hello Carbon team any updates on this implementation? It seems that other components have the props of invalid and invalidText where we can specify the errors but not on this component |
Hey there! This has been accepted for a while but has now been planned to be tackled by the core team. 🎉 We've refined the steps to take for this out into a new set of issues you can track at #12638 I'm going to close this for now - it will be used as reference material for the effort to bring this to life. |
Summary
Add field validation errors for Radio Group and Checkbox Group
Design required.
Justification
Maximo EAM has long-standing business logic that allows for errors to be returned from the database against any field type. We use the field validation errors available in Carbon components like Number Input and Text Input, but noticed that Checkbox Group and Radio Group do not have these options. We understand that this is not a great UX, but due to the limits of our ability to change existing business logic (as it is high risk and impacts unpredictable customization done by customers) we require a solution for these controls to display errors at the base level.
Example:
IBM creates a Maximo app with a large form that supports options A, B, C but a customer on the server back end creates a script that says "B can only be selected if field X is set to Z". On saving the form, the user would then receive an error message, but no inline identification of what field caused that error.
Desired UX and success metrics
User can receive a custom error message and identify the selection that caused the error so that they can rectify it
Passes accessibility requirements (I'm not sure if my suggestion even does this)
Available extra resources
What resources do you have to assist this effort?
I have development resources willing to submit code, once they have an approved design to go from.
Quick exploration:
The text was updated successfully, but these errors were encountered: