Variable set Mandatory!!

Kusuma2
Kilo Guru

Hi Team,

We have more that 60 variables in the variable set .we need to make these variables mandatory in a catalog item.

I am trying to make a variable set mandatory but Not working,Is it possible to make the entire variable set mandatory.

script

function onLoad() {

    //Type appropriate comment here, and begin script below

    g_form.setMandatory('ServerType2',true);           //variable set name: ServerType2

}

Working for dispaly

g_form.setDisplay(' ServerType2',true);

Regards,

Ajay.

8 REPLIES 8

Madhu27
Tera Expert

suggested approach is make all the fields of variable set mandatory individually using UI policy. This would help you in future if you want to set any one/two fields non-mandatory from this variable set.  


Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ajay,



Any update on this? Can you mark my answer as correct, helpful and hit like if you were able to achieve your requirement. This helps in removing this question from unanswered list and helps others to search similar question quicker. Thanks in advance.



Regards


Ankur


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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ajay,



Any update on this?


Can you mark answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps people to find similar question easily. Thanks in advance.



Regards


Ankur


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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ajay,



Any update on this?


Can you mark answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.



Regards


Ankur


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