Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing "required" from form-check-input #129

Open
edkim8 opened this issue Dec 26, 2022 · 0 comments
Open

removing "required" from form-check-input #129

edkim8 opened this issue Dec 26, 2022 · 0 comments
Labels

Comments

@edkim8
Copy link

edkim8 commented Dec 26, 2022

This is for Firefox browser.
In forms, added required=False in both forms.CharField(required=False) and forms.BooleanField(required=False).
Checked Firefox inspector. For CharField, the "required" is not added and can be submitted without adding a text.
For BooleanField, the required is added as required='False'. This still cause an error and not allow to enter without check.
If the required='False' is removed via Firefox Inspector, it allows to enter without check.
Why doesn't required='False' not work?
Why does it add required='False' for BooleanField instead of removing "required" like in CharField?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants