inputs with :as => :radio_buttons are being skipped in validation
See original GitHub issueIn a form I’m building using ClientSideValidations + SimpleForm (with the gem plugin) the client side validation works for all fields except the :radio_buttons. The HTML that is produced for this group is similar to the other working ones:
`<div class="control-group radio_buttons required"> …
</div>`Yet when the submit button is clicked, all the other inputs get the ‘error’ class but the radio_buttons input does not. If I remove the :as => :radio_buttons
, the client side validations works just fine.
Any idea what is causing this? Thanks!
Issue Analytics
- State:
- Created 11 years ago
- Reactions:3
- Comments:21 (5 by maintainers)
Top Results From Across the Web
Solved: Radio button - required field validation
Solved: Hi, I've a radio button with "Yes" and "No" option tied to s ... when option is selected in Radio, the submit...
Read more >Unobtrusive validation on radio buttons is ignored while it ...
When form gets submitted nothing is happening for the radio buttons (no error messages like there would be no validation whatsoever) while text ......
Read more >Input validation based on radio button - SAP Community
Hi, I am having a problem with input validation based on radio button if the user does not hit 'enter'. The scene is...
Read more >Validate RadioButton not working in Kendo UI for jQuery
Thank you for sharing your code. I was able to reproduce the scenario and then validate the form by adding required field via...
Read more >Designing Better Inline Validation UX - Smashing Magazine
The user might have indeed overlooked the input field, but that's not the only option. They might as well just have jumped in...
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
it is possible to point npm packages to github repos:
In
package.json
:+1 for hotfix … having a hard time implementing a reliable solution in client_side_validations-simple_form