Category "flask-wtforms"

WTForms how to use description paramter

I have some simple boolean field and I want to add a short description. I specified a description parameter but it seems like no effecr. How it suppose to work

Cannot import flask_wtf into Python 3.9 venv

No matter what I do, I cannot import flask_wtf, or any variation of it - flask-wtf, flask_WTF, flask-WTF, etc. My linter doesn't recognize it (pylance in VSCod

Flask-wtf SelectMultipleField: how to configure default choices

In my app I use a among others a SelectMultipleField ("stektypes") for creating “stekken”, using the following form: class createStekForm(FlaskForm)

How to prevent Flask-WTF forms from closing modal when submitting invalid input?

I am trying to build a website where you can upload a video (this already works). But when submitting a wrong file format, the Flask-WTF form closes the modal.

How to incorporate a flask_wtf form into a Bootstrap form?

I am trying to create a simple sign-in/out website, but I don't know how to use Bootstrap with Flask effectively. I have only just started using Bootstrap, so I

Flask: How to access current user when creating forms?

I have found this question asked in various ways slightly different but the answers seemed old or not quite what I was looking for. I have a functioning Flask a

How to handle file upload validations using Flask-Marshmallow?

I'm working with Flask-Marshmallow for validating request and response schemas in Flask app. I was able to do simple validations for request.form and request.ar

WTF-Forms EqualTo validator not giving error message

I have a registration form with a password and confirm password field. When the form is submitted and the passwords do not match, it is not returning any error

I want the dropdown choice to be the one registered in my database with Flask

I have some code, but it gives me an error. It's done with Flask, and here is the error: https://hastebin.com/emifitopof.sql File forms.py class PostForm(FlaskF

How to remove 'autocomplete disabled' from input field

I have a field in which the user is ask to input a year. My html looks like this <div class="form-group {% if form_search2.year_search.errors %} error {% en