How to autosave a form

@nechemyar
As i already mentioned,

This is just an example! You will have to modify the code by your own needs!