Multi-row Variable Set - check for duplicates (or only accept unique values)

JLeong
Mega Sage

Hi Guys,

Need help on Multi-row Variable Set. I only have one column (single text), but I need to make sure that user doesn't enter the same value over and over. 

find_real_file.png

 

I am doing it on a Catalog Client script. Please assist.

Thank you in advance.

Regards,

Jocelyn

 

1 ACCEPTED SOLUTION

shouvik
ServiceNow Employee
ServiceNow Employee

This is OOB feature in Quebec. https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/product/service-catalog-management/concept/c_ServiceCatalogVariableSets.html

Variables  for a variable set has an attribute called Unique which does the validation automatically.

View solution in original post

18 REPLIES 18

shouvik
ServiceNow Employee
ServiceNow Employee

This is OOB feature in Quebec. https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/product/service-catalog-management/concept/c_ServiceCatalogVariableSets.html

Variables  for a variable set has an attribute called Unique which does the validation automatically.

Hi @shouvik 

I have set the unique attribute for one of my variables on a MRVS. It doesn't seem to be working. When is the validation supposed to occur out of interest? On change of the variable or on save of the row, or on submit of the form?

Thanks

So it works on my PDI. I will check my other instance.

Hi, Geoff_T

It does not work in my PDI, is there anything else need to do?thanks