How to auto populate a multi row variable set variable with value selected in drop down type of a catalog item variable

Shannu S
Kilo Explorer

Hi All,

I have created a multi row variable set on a catalog item. I need to auto populate a MRVS variable with the value selected in select box type variable.

For example, select box type variable is 'AB' and MRVS variable is XY.

AB has drop down values as P,Q,R. If I have selected 'P' in AB, same should auto populate in XY. Please help me to get this.

Any help would be appreciated.

 

Thanks in Advance!!

8 REPLIES 8

Hello Ankur,

MRVS has five variables and need to change the variable value and keep only 1 row.

Hi,

So here is the approach

1) onChange of select box form the JSON string and set the value for XY variable

2) now again when some value changes; parse the JSON and replace the XY variable value with your value and again set it

Regards
Ankur

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

Hi Ankur,

Would you be so kind, please provide the script, as I am a newbie to ServiceNow.

Thanks!!!

Hi,

I would suggest to start on your own and it would be learning for you as well

regards
Ankur

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