-
Notifications
You must be signed in to change notification settings - Fork 905
Auto Save Draft Feature #2584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Save Draft Feature #2584
Conversation
ravichandra1998g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @Maheshkh9738
We already have OOB feature that enables drafting a catalog item
Save a draft of a catalog item.
https://www.servicenow.com/docs/auth/login/?redirect=%2Fbundle%2Fzurich-servicenow-platform%2Fpage%2Fproduct%2Fservice-catalog-management%2Ftask%2Fsave-draft-catalog-item.html&sso=true
|
Hello @Maheshkh9738 |
|
Hi Ravichandra,
Thank you for your feedback. I'd like to clarify how the proposed Auto Save
Draft Feature differs from the out-of-box functionality:
• OOB Behavior: ServiceNow does not automatically save catalog form
progress. Data is only saved when the user submits the request or adds it
to the cart. If the user navigates away or closes the browser, all unsaved
data is lost.
• Proposed Feature: Our implementation introduces:
• Automatic draft saving at regular intervals (e.g., every few minutes)
using GlideAjax.
• Storage of incomplete form data in a custom draft table.
• Ability for users to resume from where they left off without losing
progress.
This enhancement improves user experience for long or complex forms and
reduces frustration caused by accidental navigation or session timeouts.
Thanks,
Mahesh
…On Wed, 29 Oct 2025 at 5:13 PM, Ravi Chandra ***@***.***> wrote:
*ravichandra1998g* left a comment
(ServiceNowDevProgram/code-snippets#2584)
<#2584 (comment)>
Hello @Maheshkh9738 <https://github.com/Maheshkh9738>
Did you get a chance to check my comments?
—
Reply to this email directly, view it on GitHub
<#2584 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BY4T3PCRFTYO5NAQ7EKKL4332CR7DAVCNFSM6AAAAACKOKIUYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINRRGA4TKMJUGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
ravichandra1998g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
|
Hello @Maheshkh9738 This snippet would require additional checks like cleaning up the draft records once the user submits the records. So that user wants to submit another record, the form will not consider the old draft. also, If a user keeps the form open for a long time, this interval keeps firing indefinitely — you might want to clear it when the form is submitted. |
|
Hello @Maheshkh9738 Did you get a chance to check? |
|
I'm still approving this for the spirit of Hactoberfest! |
PR Description: This project implements an Auto Save Draft feature for ServiceNow Catalog Items. It automatically saves the user’s progress (form variables) every few minutes to prevent data loss if the session times out or the browser closes. it Prevents data loss during long form filling.
replace this with your description
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions