Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make variables in variable set mandatory?

Ansuha Chipuri
Kilo Guru

Hi,

I have catalog form with some variables and a variable set with few variables 

Now I want to make some variables mandatory on the variable set based on the variable value on the catalog form.

How can I achieve this.

Thanks in advance!!

1 ACCEPTED SOLUTION

Hi,

got it

Please use onload catalog client script which applies on Catalog Item and not variable set

then you can access the variables inside variable set using g_form object

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

@Ansuha Chipuri 

Thanks for marking my response as helpful.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

Can you pleas let me know where we can choose Applies on Catalog Task - True for catalog client script in ServiceNow.