save as draft functionality not working as expected in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 06:23 AM
When a catalog request is saved as draft, on the draft record few conditionally dependent variables are hidden even when they are made visible on normal request form and few variable values are cleared. Please let me know if this can be solved without disturbing existing scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 08:45 AM
Hi @sln
The prime reason Catalog UI polcies or Client scripts,
https://www.servicenow.com/community/developer-articles/save-catalog-items-as-draft/ta-p/2855484
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 09:02 AM
Hi @Dr Atul G- LNG , thanks for the reply.
However, I've gone through the 2nd link, but I didn't find any solution related to my scenario.
But in the 1st link, I've found a solution that is to change value action of ui policy from "clear value" to "leave alone". If I implement this, then that would be an issue for other behaviors which run based on the ui policy. Also, in my scenario there are client scripts to clear value of variables as well. So could you please let me know if there's any solution without changing existing behavior. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 12:05 PM
Hi @sln
No, mate, there’s no solution at the moment because of the script, as I mentioned in my last reply as well. It’s better to log a new support case and see if the team can assist."
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 11:57 PM
But not just ui policies, there are client scripts that are clearing values of variables as well.
Also is there any way to solve the variables being hidden on the draft record issue. Thanks in advance.