How to get current catalog item name or sys_id using catalog client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2013 07:39 PM
I have a variable set that used by multiple catalog items, how to write a catalog client script to get the current catalog item information(name, sys_id, etc)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2013 01:16 AM
Hi,
In any order guide item included in your cart at Step -2 ( choose options ). If you need to access this information at step - 2 look into UI Page " com.glideapp.servicecatalog_cat_item_guide_view " you can write some javaScript under "Client Script" .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2013 02:08 AM
you still have access to g_form and g_form.getUniqueValue() will give you the current sys_id.
I hope this helps a bit.
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2017 10:29 AM
We tried using g_form.getUniqueValue() in an onSubmit Client Script and it returned a blank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2015 10:37 AM
Hi James,
Were you able to get the sys_id of the catalog item in which we are in?
Thanks,