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:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top 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 >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
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.
Thanks for checking 👍