- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 01:03 AM - edited 12-17-2023 11:26 PM
Hi Community,
I want to remove add button from one of the related list under that when change is requested for approval i.e. when state changes to assess, add button in this related list shouldn't be visible at all or when change is submitted for approval after that add button shouldn't be visible on this related list.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 12:18 AM - edited 12-18-2023 04:39 AM
Hi @Poorva Bhawsar ,
If you want to hide the "Add" button, then you need to modify the "Add" UI action on task_cmdb_ci_service table as per your conditions. If you want to modify this only for change_request, then remove 'change_request' from the 'com.snc.task.associate_ci' system property and add the UI action condition as below:
current.canCreate() && RP.isManyToMany() && parent.active == true && (gs.getProperty('com.snc.task.associate_ci').indexOf(parent.getTableName()) > -1 || (parent.getTableName() == 'change_request' && parent.state != '-4'))
//Assuming Asses state choice as -4
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 01:15 AM
Greetings!!
The solution is here
Go to Related list
Right click configure --> List control
Script the "Omit new condition" part like below:
if (change_state == 1/2/3/4) /
true;
else
false;
4. Click on Update.
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
12-15-2023 01:16 AM
I want to remove add button not new button. Can you please help me with the add button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 01:42 AM
Logical and steps will be same. Give a try in PDI and share feedback.
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
12-15-2023 01:59 AM
There is nothing to add on for 'add button'.