remove option in choice type variable

siva ram1
Kilo Contributor

Is it possible to remove an option from choice list of variable in a multi row variable set based on another field value which is not part of this multirow variable set on a catalog form..?

Example:

areas: 1.abc  2.pqr 3.xyz

based on area selection i want to remove options from choice list of a variable in a multirow variable set.

 

5 REPLIES 5

Himanshu Dubey
Giga Guru

Hi

Please refer below link it might help you

https://community.servicenow.com/community?id=community_question&sys_id=662b30b8db30e784fff8a345ca96...

 

Please mark correct and Helpful if it helps

Thanks and Regards

Himanshu Dubey

siva ram1
Kilo Contributor

no Himanshu i am looking for multirow variable set... i mean based on variable value i need to remove options from another field which is part of a multi row variable set. 

Brad Bowman
Kilo Patron
Kilo Patron

Did you try an onChange catalog client script with g_form.removeOption referencing the variable name?  It may work the same whether the variable is attached to the catalog item, in a single row variable set, or multi row variable set.

siva ram1
Kilo Contributor

Hi Brad,

The issue here is variable on which it is dependent is not part of the multirow variable set so removeoption is not working in this case.

 

consider "Area" is a variable and the another variable "location " is part of a multirow variable set so now based on selected "area"  i want to restrict the options of a variable inside the multirow variable set.