Multi Row Variable Set - Disable 'Remove All' and 'Delete' functionality (Catalog form)

Robbie
Kilo Patron
Kilo Patron

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

16 REPLIES 16

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

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).

//Göran
Feel free to connect with me:
LinkedIn & Twitter
Subscribe to my YouTube Channel
Buy The Witch Doctor's Guide To ServiceNow

How to hide buttons in Multi-Row Variable Sets (MRVS) without DOM manipulation


https://www.servicenow.com/community/now-platform-forum/how-to-hide-buttons-in-multi-row-variable-se...

Robbie
Kilo Patron
Kilo Patron

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

 

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