Issue
I know I can easily extract data from html input tag using request.form['email']
after POST method.
Is there a way to populate this particular input tag with something like:
request.form['email'] = current_user.email
which obviously throws 'ImmutableMultiDict' objects are immutable
? (Without using FlaskWTF).
Any help would be much appreciated!
Solution
Actually, this could be easily done using value
attribute, e.g.:
<input class="email" name="email" value="{{ current_user.email }}" required/>
Answered By - Taras
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.