Multi Row Variable Set - Disable 'Remove All' and 'Delete' functionality (Catalog form)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 10:34 AM
Hi,
Has anyone managed disable any of the properties and functionality associated with the new Multi Row Variable Set on the Service Catalog form?
Specifically, I'm trying to disable the 'Remove All' option as well as the delete functionality (x icon per row). Whilst I can achieve this via DOM manipulation, obviously I'm very conscious of the unsupported nature around this.
I've tried setting UI policies for example as well as setting write roles etc, however I'm not having much success using supported approaches. Anyone else tried this?
To provide some background as to the why, we're leveraging the MRVS to present a list of Assets and asset data associated against a user and asking a user to confirm, edit and add data if required. However for anything pre-populated we want to prevent deleting or removing this data. Any data the user choses to add, this could be removed/deleted.
Thanks in advance,
Robbie
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2019 06:13 AM
Hi Robbie,
The way mrvs is made up I wouldn't go down the road and try to build a custom modification for this since I think it would be a very complex one and I can bet that something will change in New York making that customization crash. Sadly this options you are looking isn't there in the baseline configuration either. Perhaps making two mrvs, one with the read only ones and keeping it read only and one where the user can add etc. Or you can display the read only through another type of variable or even a widget (through the macro variable).
LinkedIn & Twitter
Subscribe to my YouTube Channel
Buy The Witch Doctor's Guide To ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 09:30 AM
How to hide buttons in Multi-Row Variable Sets (MRVS) without DOM manipulation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 02:42 AM
Thanks Goran - appreciate the response and the idea of the multiple MRVS's.
Whilst it is possible to pre populate and make data read only, have you been able to disable the delete or remove buttons?
I know this sort of goes against what the MRVS is built for, however, the ability to display existing data in a table format is a powerful, functionality for which the MVRS fits perfectly.
Thanks,
Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2019 01:51 AM
Hello Robie,
Did you get the solution for this? I was looking for a way on how to make MRVS read-only and disabled Add and Remove All in RITMs.
Thank you,
Diane