Variable Attributes for a reference variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 12:24 AM
how to access variables fields on the form of sc_req_item in variable attributes in service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 12:28 AM
Hello @nowitsvashu
Please refer attached article. Hope this helps you if helped mark it as solution accepted and helpful. So it will help others as well.
https://www.servicenow.com/community/developer-forum/show-catalog-item-variables-in-columns-on-refer...
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 12:51 AM
hi @nowitsvashu
to access the form variable which are submitted from catalog item is "g_form.getValue('variable_name')";
let me know if this works or if want anything else..
Please accept the solution /mark this response as correct or helpful if it assisted you with your question.
Regards,
Animesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 01:04 AM
Hi,
How do you wish to access it via Business Rule/Server side or client side.
If BR/Server side you can use current.variables.variable_name where variable_name is actual variable name
For client side it can be simply g_form.getValue('variable_name')"; where variable_name is actual variable name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2024 01:27 AM
can you close the thread so that others will be able to view this if your query is answered by me , else let me know what else you require?
Please accept the solution /mark this response as correct or helpful if it assisted you with your question.
Regards,
Animesh