Top "Wtforms" questions

WTForms is a flexible forms validation and rendering library for Python.

Using Flask-WTForms, how do I style my form section of the html?

I read through Flask-WTF extremely simplified wiki, and couldn't understand much about what I can do with it. I am …

python flask wtforms flask-wtforms
Clear valid form after it is submitted

I want to reset the form after it validates. Currently the form will still show the previous data after it …

python flask wtforms flask-wtforms
Generate a dynamic form using flask-wtf and sqlalchemy

I have a webapp that allows users to create their own fields to be rendered in a form later on. …

python sqlalchemy flask wtforms flask-wtforms
I'm not able to import Flask-WTF TextField and BooleanField

I'm using virtualenv to set up a new project. I installed a lot of things using virtualenv pip from the …

python import flask wtforms flask-wtforms
Flask + WTForms + SelectMultipleField and Dynamic Choices

I am trying to use WTForms.SelectMultipleField to manage some dynamic choices on a form but I'm running into some …

python flask wtforms
Flask wtf form AttributeError: 'Request' object has no attribute 'POST'

I just started coding with Flask and I want to set up CSRF on a small form in my application. …

python flask flask-wtforms wtforms
How to specify rows and columns of a <textarea > tag using wtforms

Constructing a wtforms' TextAreaField is something like this: content = wtf.TextAreaField('Content', id="content-area", validators=[validators.Required()]) How can I …

python wtforms
How to make a field conditionally optional in WTForms?

My form validation is working nearly complete, I just have 2 cases I don't know exactly how to solve: 1) The password …

python google-app-engine validation wtforms
Pre-populating a BooleanField as checked (WTForms)

For the life of me, I can't figure out how to pre-populate a BooleanField with WTForms. I have a field …

python flask wtforms
how to implement not-required DateField using Flask-WTF

I want a DateField which is optional, but I got a "Not a valid date value" error if leave it …

flask wtforms flask-wtforms