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

@Hitoshi Ozawa were you able to make this work on Service Portal? We followed your onSubmit client script code on the MRVS but nothing happens. (We're in Paris as well)

 

Chakravarti
ServiceNow Employee
ServiceNow Employee

parent.g_form is returning undefined.

If you're in Service Portal, that may be by design.  I'd suggesting opening a new post to ask your question. 
If you don't want to do that, can you share specifically what UI this is failing in UI15, UI16, Service Portal, Now Experience?

Chakravarti
ServiceNow Employee
ServiceNow Employee

I have tried hozawa's idea in Service Portal.

In client script of MRVS, I am getting undefined for parent.g_form.

@hozawa , any inputs on this?

Will check.