Top "Wtforms" questions

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

Flask-WTForms throws error for IntegerField instead of failing validation

When I create a form using wtf_forms and Flask-WTF and use the IntegerField input, I can't use it in …

python flask wtforms flask-wtforms
Validate that a WTForms BooleanField is checked

I am creating a form using Flask-WTForms. I am using a BooleanField so that a user can indicate they agree …

python flask wtforms flask-wtforms
Using WTForms' populate_obj( ) method with Flask micro framework

I have a template which allows the user to edit their user information. <form method="post"> <table&…

python flask wtforms mongokit
Flask App Using WTForms with SelectMultipleField

I have a Flask application that uses WTForms for user input. It uses a SelectMultipleField in a form. I can't …

python flask jinja2 wtforms
Calling REST API from the same server

I have a web application which is backed by REST API located on the same server. Let's say I have …

rest flask python-requests wtforms flask-restful
Regex validation with WTForms and python

Here is my code: class CreateUser(Form): username = StringField('Username', [ validators.Regexp('\w+', message="Username must contain only …

python regex wtforms
WTForms: two forms on the same page?

I have a dynamic web-page that should process two forms: a login form and a register form. I am using …

python forms flask wtforms flask-wtforms
Filling WTForms FormField FieldList with data results in HTML in fields

I have a Flask app in which I can populate form data by uploading a CSV file which is then …

python flask wtforms flask-wtforms fieldlist
How do I validate wtforms fields against one another?

I have three identical SelectField inputs in a form, each with the same set of options. I can't use one …

python validation flask wtforms flask-wtforms
How to populate my WTForm variables?

I'm enabling a function that can edit an entity. I want to populate the form with the variables from the …

python google-app-engine jinja2 wtforms