Hi Multi Row Variable Set Validations

Gowtham29
Tera Expert

Hi Team,

There is a drop down variable as 'A' and 'B' in Multi Row Variable Set. If the user enter the entry as B first, system should not allow to create an entry in the MRVS, should alert on the form and need to abort action. Always user has to enter the entry as 'A' first. This MRVS should have only one entry for 'A', if the user try to make an entry for 'A', it should not allow.

Please let me know how to create this validation.

5 REPLIES 5

Aman Kumar S
Kilo Patron

Hi @Gowtham29 

I believe you can create a UI policy with condition.

and you can have the MRVS variable as the UI policy action and ReadOnly as true, that should be enough to make your MRVS non editable.

Following article should help with demo:

https://www.servicenow.com/community/developer-articles/read-only-multi-row-variable-set/ta-p/230851...

 

Best Regards
Aman Kumar

I have variable inside the MRVS and need to do validation using the variable which is in inside MRVS, please suggest

Sid_Takali
Kilo Patron
Kilo Patron

Hi @Gowtham29 can you share snapshot of MRVS variable set?

Hi @Sid_Takali, here is the screenshot

Gowtham29_0-1708489574416.png

1. User has to enter Device Type as Apple iPhone first to the MRVS, if he choose other than Apple I need to show some alert and abort the action
2. Once the user selected apple phone with storage of 64BG and added to the MRVS, systems should not allow the user not to add again the same combination (iphone+64GB), I need to show alert here and abort the action. He should have access to make new entry as iPhone+128GB
This is bit urgent please kindly help me