Custom Widget Types for HTML5 Form Fields
I recently needed an easy way to add different input types to form fields based on the type of input. So, I created a widgets.py file and added varying input classes to meet my needs.
- forms
- widget
- html5
I recently needed an easy way to add different input types to form fields based on the type of input. So, I created a widgets.py file and added varying input classes to meet my needs.
I needed a way to validate non-required, dynamically generated form fields, and clean provided the best solution for this problem.
leveillej has posted 2 snippets.