Skip to content Skip to sidebar Skip to footer
Showing posts with the label Wtforms

Wtforms: Integerfield Skips Coercion When String Value Is '0'

This question almost covers what I am after here, but not quite. It seems like IntegerField skips c… Read more Wtforms: Integerfield Skips Coercion When String Value Is '0'

Flask-wtforms How To Override Pre Validate On Radio Fields

I'm trying to raise an error when a user submits without selecting a radio choice and it's … Read more Flask-wtforms How To Override Pre Validate On Radio Fields

Flaskform Pass A Variable (wtforms)

I want to pass a str to be used as the prompt for a form. I thought it would be simple but it is pr… Read more Flaskform Pass A Variable (wtforms)

What Is The Correct Way To Populate Fields From Database Or Session Data?

I'm storing some variables in the session when the user logs in, to use later to populate a fie… Read more What Is The Correct Way To Populate Fields From Database Or Session Data?

Multiple Instances Of The Same Form Field

I have invite form with two fields defined as person and email as follows: class InviteForm(Form): … Read more Multiple Instances Of The Same Form Field

Python Flask Wtform Selectfield With Enum Values 'not A Valid Choice' Upon Validation

My Python Flask app is using WTForms with built in python Enum support. I'm attempting to submi… Read more Python Flask Wtform Selectfield With Enum Values 'not A Valid Choice' Upon Validation