Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: JavaScript
Expertise: Beginner
Jun 26, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Saving Form Data Within the Form Format


I want users to be able to save a partially completed form, preferably to their hard disk with a user specified name, so that they can retrieve the file and complete the data prior to sending it for server processing. They may also choose to save the data from a completed form in the "form format" of the collecting file. Can JavaScript be used with the HTML form to bind the data and the form as a single savable file— either to the web server where it can be retrieved by the user or preferably to the user's local drive?


JavaScript cannot save a file to the user's hard drive. For this example, I'd try using cookies. Then, when you load the page with the form, see if the cookies are already saved, and repopulate the form with the saved data if it exists.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date