How to auto populate a multi row variable set variable with value selected in drop down type of a catalog item variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 11:50 PM
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!!
- Labels:
-
Multiple Versions
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2022 12:04 AM
Hello Ankur,
MRVS has five variables and need to change the variable value and keep only 1 row.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2022 12:08 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2022 12:39 AM
Hi Ankur,
Would you be so kind, please provide the script, as I am a newbie to ServiceNow.
Thanks!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2022 01:01 AM
Hi,
I would suggest to start on your own and it would be learning for you as well
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader