The new changes in catalog item should be apply to new ritms only not for older ritms

srinureddy1642
Tera Contributor

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.

 

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@srinureddy1642 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@srinureddy1642 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

 

Can you please provide some example code for this.

 

Thanks.

@srinureddy1642 

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?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader