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

Checkbox not rendering #132

Open
bpfruin opened this issue Jul 20, 2016 · 0 comments
Open

Checkbox not rendering #132

bpfruin opened this issue Jul 20, 2016 · 0 comments

Comments

@bpfruin
Copy link

bpfruin commented Jul 20, 2016

I'm a novice backend developer tasked with making a checkbox that toggles a boolean value in the DB when checked or unchecked. The form I'm modifying uses NewForms and when trying to create this checkbox element, the label shows but the checkbox does not. When extending the form I am:

"fake_agent": forms.BooleanField({label: 'Fake Agent', required: false, widget: forms.CheckboxInput}),
The JSX is:

{bfo.fake_agent.labelTag()} {bfo.fake_agent.render()} {console.log(bfo.fake_agent)}
{bfo.fake_agent.errorMessages()}

As far as I can tell, I'm conforming to the NewForms docs and the form elements already on the page. Like I said, the "Fake Agent" label shows but the text box widget does not and I have no idea why.

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

No branches or pull requests

1 participant