question-mark
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.

Bootstrap 4 Radio Validation

See original GitHub issue
  • Package version: 1.9.2
  • Django version: 3.0.2
  • Python version: 3.7.3
  • Template pack: (Optional)

Description:

I feel like I’m missing something, after reading through the various commits and issues related to #794 . It seems that line 8 of crispy_forms/templates/bootstrap4/layout/radioselect.html is still missing the {% if field.field.required %}required {% endif %} line that allows Bootstrap’s JS validation popup to appear.

Am I going about this wrong? Thanks for any suggestions!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
smithdc1commented, Nov 16, 2020

Thanks. The only thing we need to be careful with is having valid HTML. I think for multiple checkbox we can’t have required iirc. Should be fine for radio.

I’ll have a deeper look when I get time.

0reactions
smithdc1commented, May 16, 2021

Thanks for checking 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 4 radio validation - Stack Overflow
I need a little help with form validation with Radio element in a page that use Bootstrap 4. I need to add the...
Read more >
How to Display Validation Message for Radio Buttons with ...
Approach 1: First wrap Radio buttons and its label by using form-check-inline class. Then add img tag within the above wrap after label...
Read more >
Forms · Bootstrap v4.6
Checkboxes and radio buttons support HTML-based form validation and provide concise, accessible labels. As such, our <input> s and <label> s are sibling ......
Read more >
Bootstrap 4 Radio Buttons in Form Tutorial with Examples
To trigger the active state in the Bootstrap radio button we need to pass data-toggle="button" in the button. You should add .active class...
Read more >
Bootstrap 4 Form Inputs - W3Schools
input; textarea; checkbox; radio; select. Bootstrap Input. Bootstrap supports all the HTML5 input types: text, password, datetime, datetime ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found