You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being new to flask-wtf, I've some question/suggestion regarding the docs.
I wanted to implement a form with a submit button. After pressing the button some function needs to be executed. This was already a challenge to me. Searching StackOverflow the validate_on_submit was frequently mentioned as a method to put in my view function.
After some tweaking I have found out that putting {{ form.csrf_token }} is required in order to work with validate_on_submit. However this was not something clear from the documentation for me.
Hi All,
Being new to flask-wtf, I've some question/suggestion regarding the docs.
I wanted to implement a form with a submit button. After pressing the button some function needs to be executed. This was already a challenge to me. Searching StackOverflow the
validate_on_submit
was frequently mentioned as a method to put in my view function.After some tweaking I have found out that putting
{{ form.csrf_token }}
is required in order to work withvalidate_on_submit
. However this was not something clear from the documentation for me.Suggestion
Perhaps in the validate_on_submit docs add the following
Like to recieve your feedback and thoughts.
Example app
The text was updated successfully, but these errors were encountered: