The CreatorCon Call for Content is officially open! Get started here.

Make Variables on associated sc_task editable when RITM when RITM is Open

sarthak92
Tera Expert

HI Champs, Need your help. There is a requirement to make certain variables visible and editable on associated task for catalog item till the time the RITM is open. Once the RITM is closed, the variables on task should be read only. These variables should only be visible and editable on task and should not be visible on catalog Form /RITM. Tried using UI policy but not able to fetch this functionality completely. variables on task are still editable even after RITM is closed. Ideally no one should be able to edit those variables once associated RITM is closed/cancelled. Please help. Thanks.

7 REPLIES 7

Hi,

So for making all variables readonly if RITM is Closed which script you are using?

Are you using the script I shared?

If yes then what is not working

Regards
Ankur

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

Hi Ankur, I am using your script only to make variable read only on RITM closure. The issue which I am facing is even when the RITM is not closed, the variable is getting into read only on REQTASK. how can i ensure that the variable is read only on REQTASK only when the RITM is closed and not when the RITM is in open state ?

Hi,

So your client script is Applied on Requested Item or Applies on Catalog Task

Please share screenshot

Regards
Ankur

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