- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2022 06:44 AM
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.
Can anyone suggest how can we achieve this?
Any suggestion will be highly appreciated.
Thank you 🙂
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2022 07:01 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2022 07:01 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader