Notification Approval

Poorva Bhawsar
Mega Sage

Hi Community,

 

I have a new state specific to a catalog item. I want to hide this new state, it should only be visible to a catalog item. Once this state is selected, it should trigger an approval to a group. If approved, need to change the state of the server ci from inbuilt to active. All SC tasks attachments needs to attach on the ci selected on the form.

 

I have this client script to hide this new state.

 

function onLoad() {
    var item = g_form.getValue('cat_item');
    if (item != 'a60987578739a514aa3574497bbb3533') {
        g_form.removeOption('state', 5);
    }

}
But its hiding this state option for all catalogs. I want to show this for a specific catalog item.
12 REPLIES 12

Poorva Bhawsar
Mega Sage

I got the solution created ui policies and added scripts in advanced option to add or remove these.

Hi 

*************************************************************************************************************
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]

****************************************************************************************************************

Where is your actual reply? I only see your very lengthy signature? Or is this your new way of chasing people for marking your answer as correct?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn