Getting sys_id of variable in Catalog Item

MysUser
Tera Contributor

Hello, do you have any idea how to get an sys_id of variable in Catalog Item on ServicePortal?

I want to use Client Script. The variable is checkbox.

 

I tried functions like: g_form.getUniqueValue('var_name');

g_form.getElement('var_name');

g_form.getElement('var_name').id;

 

Nothing works...

1 ACCEPTED SOLUTION

Community Alums
Not applicable

You mean the cat item you seen on screen in the portal, right?

Have you tried  $sp.getParameter("sys_id") from the widget?

in portal no g_form will work away from the scope of the catalog item itself. 

View solution in original post

1 REPLY 1

Community Alums
Not applicable

You mean the cat item you seen on screen in the portal, right?

Have you tried  $sp.getParameter("sys_id") from the widget?

in portal no g_form will work away from the scope of the catalog item itself.