The CreatorCon Call for Content is officially open! Get started here.

Is there a way to SAVE a form before submission and AUTOSAVE if the form is left idle

Cupcake
Mega Guru

There has been an expressed need to SAVE a catalog form and its contents just in case the customer that is submitting a request needs to come back to the form at a later time.

In addition, can the form be setup to AutoSave including all of the contents if the form is left idle for a specific amount of time.

What is the best way to handle this?

Thanks,

Karen

6 REPLIES 6

Mike Allen
Mega Sage

If this were my requirement, I'd approach it something like this (and this is just off the cuff, I have not tried it):



  1. Create new table that holds all the variable values
  2. onLoad of the item, have a client script that writes via AJAX the item and the user
  3. onChange of each variable, have an AJAX call that writes the value to the new table
  4. onSubmit of the form, check this table and delete any record that matches what was just submitted
  5. amend the onLoad to check the table for a record that already exist; if it does, populate the fields with the values stored in the table and then use that record to the new values, else create a new record.


Something like that.


sumeet_n
Kilo Guru

Hi Karen and All,



Feel free to use below share utility for Autosaving the forms. Please provide your thoughts/suggestions/feedback/reviews. Thank you.



ServiceNow Share