Populate Text variable based on select box choice - Multirow Varset

Vinicius2
Kilo Sage

Hello everyone, 
I have a requirement that is basically like this:
I have a multi-row variable set with one select box variable and a single line text variable
I need to create a script that will populate a text in the single line text variable based on the select box choice.
find_real_file.png

Can anyone suggest how can we achieve this?

Any suggestion will be highly appreciated.

Thank you 🙂

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Do this

1) create onChange catalog client script

2) Applies to Variable Set - Select your MRVS

3) Select the variable as Choice variable

4) then use script to set whatever you wish to set in single line text variable

Regards
Ankur

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Do this

1) create onChange catalog client script

2) Applies to Variable Set - Select your MRVS

3) Select the variable as Choice variable

4) then use script to set whatever you wish to set in single line text variable

Regards
Ankur

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