I am trying to create a contact form using flask but keep getting this error when the page is rendered.
\'forms.ContactForm object\' has no attribute \'hidden_
I just fixed this problem as well.
Your problem is that you imported Form twice, rendering your flask-wtf Form
import useless.
from flask_wtf import Form
from wtforms import Form, TextField, TextAreaField, SubmitField, validators
# ^^^ Remove
Only the flask-wtf extension has the special Form
class which can handle CSRF automatically / other stuff.