Top "Wtforms" questions

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

How do you set a default value for a WTForms SelectField?

When attempting to set the default value of a SelectField with WTForms, I pass in value to the 'default' parameter …

python flask wtforms
Add a css class to a field in wtform

I'm generating a dynamic form using wtforms (and flask). I'd like to add some custom css classes to the fields …

css flask wtforms
WTForms Can I add a placeholder attribute when I init a field?

I want to add a placeholder attribute on to the field in WTForms. How can I do it? abc = TextField(…

python wtforms
WTForms: Install 'email_validator' for email validation support

Getting exception when running the following code for form validation. File "/Users/homeduvvuri/Documents/Learning/PartyGoUdemy/PartGo/user/forms.py", …

python flask wtforms
wtforms hidden field value

I am using WTForms, and I have a problem with hidden fields not returning values, whereas the docs say they …

python wtforms
Flask-WTF - validate_on_submit() is never executed

I'm using Flask-WTF: Here is my form: from flask.ext.wtf import Form, TextField class BookNewForm(Form): name = TextField('Name') …

python forms validation flask wtforms
How to retrieve session data with Flask?

I have flask+wtforms application. I can see in login() user object stored as if user: if user.verify_password(…

python flask wtforms
DatePickerWidget with Flask, Flask-Admin and WTforms

I'm trying to render a template that contains a DatePicker, but I'm getting a 500 error when I try. For my …

flask jinja2 wtforms flask-wtforms flask-admin
Flask-SQLAlchemy: How to conditionally insert or update a row

My application uses a combination of Flask, Flask-SQLAlchemy, Flask-WTF and Jinja2. In its current incarnation, I have a settings table. …

python flask flask-sqlalchemy wtforms flask-wtforms
Not a Valid Choice for Dynamic Select Field WTFORMS

I currently am creating a dynamic select field using WTFORMS, however it never submits and fails the validation with the …

python flask wtforms