How to populate catalog item name in variable set f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2023 03:40 AM
How to populate catalog item name in variable of variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2023 04:29 AM - edited ‎10-31-2023 04:29 AM
use code - in default value of name field
javascript:current.cat_item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2023 04:47 AM
Thanks for your reply..
It's working in variable but not in variable set.
Is there any restrictions for variable set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2023 04:53 AM
Ahh, cause variable set can be attached to any catalog item
you may want to create catalogue client script then which will populate the name. but you need to make the field where you want to set the name as reference and table as sc_cat_item.
and in script use this
g_form.setValue('your variable name goes here',g_form.getParameter("sysparm_id"));