Keeping form data for later use
Hello, all,
I know that this question doesn't really belong here, but the General Development forum is dead (I've already asked a question, there - no response), and the smartest users that I interact with are in this forum, anyway. So, please forgive the audacity of posing this question, here, and please do not move it to another forum.
I've been tasked with setting a form up so that a user can check a checkbox that will save the form for re-use, later. The user can give it a name, and it will appear in a SELECT drop-down on future visits.
What I have in mind (and I've done, so far) is to use jQuery.serializeArray() and JSON.stringify() to save the form fields and data as a string in a single column of a database table. So far, so good.
However, upon retrieving said string, posting it back to the browser and using JSON.parse() to make that data into an object, I'm facing some real difficulty in populating the data back into the form.
The code that I have, so far, is not the actual form that I'm working on - I've created a dummy form just to get this code to work, and will transfer it to the production form as soon as I've got this working.
I'm going to try to get code from my dev environment (isolated from internet) to post here. I'll be right back. (If I sit here, the session will expire before I hit the "Post" button on this message.)
V/r,
^_^
