flask-bootstrap icon indicating copy to clipboard operation
flask-bootstrap copied to clipboard

Problem with quick_forms

Open lormayna opened this issue 8 years ago • 1 comments

Hello, I'm try to render a simple form with flask-wtf and quick_forms. This is my form: `class SignupForm(FlaskForm):

username = StringField('Username', [validators.Length(min=4, max=25)])

accept_tos = BooleanField('I accept the TOS', [validators.DataRequired()])

prefs = BooleanField()` This is the template: {{ wtf.quick_form(form, action="/signup") }}

Unfortunately the BooleanFields are not rendered. All the other fields look correct.

lormayna avatar May 13 '17 21:05 lormayna

Try this: accept_tos = BooleanField('I accept the TOS', validators=[Required()])

oneohthree avatar Aug 25 '17 15:08 oneohthree