[Flask] Is there a way to periodically save form data without requiring the user to click on a button?

CCP Dragonedge ccp at drsb.com.my
Thu Apr 23 03:17:24 EDT 2020


Hi,

Let's say I have 10 input fields on a form. The user has input data into
four or five of them. Before he completes, he is called away from his or
her desk - for a long time (eg meetings, phone call, etc).

Let's assume that the user can't click on the Submit button yet because all
of the fields haven't been input. So, the record isn't saved...

Is there a way for Flask to save it on the client side? I read about
Flask-Socketio, but that seems kind of overkill.

Or is this outside the scope of Flask, and in the realm of Javascript? I
found out about HTML5 Local Storage (or WebStorage). To my understanding,
however, that's in Javascript, so then AJAX gets involved if I want to pass
the saved value back to Flask, right?

p
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20200423/bdeda4bf/attachment.html>


More information about the Flask mailing list