Auto save request (save like draft)

inish
Kilo Contributor

Does servicenow has any auto save functionality.

the form would automatically save periodically to prevent loss of information if the requester is away from his/her desk.

any thoughts?

10 REPLIES 10

kreddyT
Mega Contributor

function onLoad(){  


setTimeout(autoSave,300000); // 5 Minutes (in milliseconds)  


}  


function autoSave(){  


gsftSubmit(gel('sysverb_update_and_stay'))  


}  



I tried this with the help of the following link,


Auto-save feature (like gmail's auto draft)


and it works for me but the form reloads every 5 minutes. I am looking for something that auto saves my form without reloading.


I tried glideajax and the form auto-saves without reloading but for every 5 minutes the presence of the cursor jumps to previous line.


How can I make the cursor stay at the same place it was?



Please let me know if you have a suggestion.


I would like to know as well. I have tried but cannot get it to autosave once without reloading periodically.


mcclain
Mega Contributor

Did you able fix that cursor issue as you mentioned.


The code I posted above saves without reloading.


kreddyT
Mega Contributor

No. I wasn't. I raised a HI ticket for that but they couldn't help either. I figured a workaround though.



Whenever i call script include every 5 minutes, I am saving this field's value to another field in another table. That way my form never re-loads and the cursors stays in its place. If user lost his text, he can go back to another table and get that text he entered until 5 minutes back. To make it even more cleaner, you can add a UI macro on the form that gets the values from another table and places it in current table's field. However, each time i am saving only one field. You can try it to save multiple fields.