Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

inputs with :as => :radio_buttons are being skipped in validation

See original GitHub issue

In 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"> …


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:open
  • Created 11 years ago
  • Reactions:3
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

taglialacommented, Jun 3, 2020

because I don’t provide npm package.

it is possible to point npm packages to github repos:

In package.json:

    "package": "user/repo#branch",
mateniacommented, May 21, 2013

+1 for hotfix … having a hard time implementing a reliable solution in client_side_validations-simple_form

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found