How to populate catalog item name in variable set f

lucky6
Tera Contributor

How to populate catalog item name in variable of variable set

3 REPLIES 3

Harshad Wagh
Tera Guru

use code   - in default value of name field 

 

javascript:current.cat_item

Thanks for your reply..

It's working in variable but not in variable set.

Is there any restrictions for variable set?

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"));