- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2023 08:47 PM
Hi All,
Actually I want to disable disable "Add and Remove All " buttons from Multirow variable set of catalog item
Please help me achieve this
Thanks
Deepika
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2023 09:27 PM
this link has the solution
Disable buttons in MultiRow Variable Set
How to disable "Remove all" button on the Multi Row Variable set in service portal ?
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
02-26-2023 08:55 PM
Hello Deepika
You can simply create a catalog UI policy on your catalog item and under scripts add these 2 lines of code.
var my_var = g_form.getField("my_var_set");//use your variable set name here
g_form.setReadOnly('my_var_set',true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2023 09:02 PM
Hi Ritu,
Thanks for the response
But if i want to disable only "remove All " button, what is the code for that?
Thanks
Deepika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2023 09:27 PM
this link has the solution
Disable buttons in MultiRow Variable Set
How to disable "Remove all" button on the Multi Row Variable set in service portal ?
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
02-26-2023 08:59 PM
if you disable then how user will add/remove?
what's your business requirement?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader