Client Script on 2 different Multi Choice Variables

Bijay Kumar Sha
Giga Guru

Hi,

As per below screenshot, I've 2 Multi Choice variables having below options. 

BijayKumarSha_0-1724139878130.png

 

I wanted to show 'Create New Account' radio button only when user selects 'Azure Admin(ZA)' and other 2 options should be hidden. And for others options, all the 3 options should be visible as per the screenshot. 

 

Initially, I was looking to implement using UI policy but unable to do. So, can anyone please help me with the use of OnChange Client Script on this?

2 REPLIES 2

Vrushali  Kolte
Mega Sage

Hello @Bijay Kumar Sha ,

 

Please refer below link to achieve your requirement. This shall resolve your issue -

https://www.servicenow.com/community/itsm-forum/how-to-hide-an-option-from-a-multiple-choice-variabl...

 

If my answer solves your issue, please mark it as Accepted✔️ & Helpful👍!

Hi @Vrushali Kolte ,

It didn't resolve my requirement here. As per above link you shared, If I create a new Multi Choice variable having only 'Create New Account' choice value, then I need to re-write other UI policies and other scripts which is being associated with 'Create New Account' option. 

 

Can't I write OnChange Client script for only these 2 variables provided in my screenshot ?

 

My simple requirement is to Show only 'Create New Account' choice value when I select 'Azure Account (ZA)' from 1st Multi Choice values. And for other selections, all the 3 possible options should be visible as it is.