You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to remove 'is-valid' from my form object, but the validation css class is added before rendering.
I can use server_side_validation in django-bootstrap5 settings but it's global and I don't want to stop validating other forms.
I suggest adding a new parameter to template tags responsible for rendering forms and fields. E.g. {% bootstrap_form form server_side_validation=False %}.
The text was updated successfully, but these errors were encountered:
TohidN
changed the title
Customizing validation on specific fields or all form
Customizing validation on specific fields or form
Dec 19, 2024
I tried to disable validation of a form or it's specific fields. but it seems that
django-bootstrap5
forces validation for all bound forms:django-bootstrap5/src/django_bootstrap5/renderers.py
Line 426 in fa61c34
server_side_validation
in django-bootstrap5 settings but it's global and I don't want to stop validating other forms.I suggest adding a new parameter to template tags responsible for rendering forms and fields. E.g.
{% bootstrap_form form server_side_validation=False %}
.The text was updated successfully, but these errors were encountered: