FormsySelect required is not showing any error when submit the form
See original GitHub issueHi, i need to show a messge when the user hits the submit button and a value on the FormsySelect are not selected (similar to a text field behavior).
If i use:
validationErrors={{ isDefaultRequiredValue: "Your error message when field is required", }}
The error is displayed, but inmeddiatly when the component is loaded.
Is there a way to do this validation when user hits the submit error? Thanks a lot
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
javascript - <select> required not working - Stack Overflow
I'am using this code along with php ...
Read more >HTML <select> required Attribute not working in Visualforce?
In my code below I have two fields of type text and select, the validation runs on the text field if it remains...
Read more >HTML Required Not Working: 5 Issues That Cause It
The error "HTML required not working" can be a hassle, but it can be fixed. Read about the common issues to help you...
Read more >HTML select required Attribute - W3Schools
The required attribute is a boolean attribute. When present, it specifies the user is required to select a value before submitting the form....
Read more ><Select> field's validation errors are not shown if field ... - GitHub
I use Select components with placeholder values in my forms. And in many cases these fields are mandatory. And normally works everything just ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use the
required
prop along withrequiredError
.validationError
pairs with the propvalidations
.Well… i would really like to help you with a PR, but i’m affraid that i will messed up your great code xD I hope that you can help me with this soon. Please, don’t forgett me @rojobuffalo. And thanks a lot for you attention.