The new changes in catalog item should be apply to new ritms only not for older ritms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 05:54 AM
I have a existing catalog item with 2 sections. one is personal information the other one is Required Information. these two sections contains some variables, those variables will show when RITM is loading after submitting the request. Now I want to add one select box variable inside the required information section then based the selection of the select box value i need to show the other variables.
The new changes in catalog item should be apply to new ritms only not for older ritms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 05:57 AM
you can use onLoad client script on sc_req_item table and use GlideAjax
Check the created date is before the time when you added that section
If yes then hide the sections so that it hides for older RITMs
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 06:21 AM
If you are referring to form sections then check my above comment so that the sections only show for new RITMs.
If you are referring to new variable you created then it won't show on older RITM.
I agree with Rob and Omkar here.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 09:39 PM
Hi Ankur,
Can you please provide some example code for this.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 11:07 PM
I already informed the solution.
You can use onload client script + GlideAjax and check the timestamp and hide
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader