Variable Attributes for a reference variable

nowitsvashu
Tera Guru

how to access variables fields on the form of sc_req_item in variable attributes in service catalog

4 REPLIES 4

Simran Gadodiya
Mega Sage

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

AnimeshP_96
Tera Guru

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

Jaspal Singh
Mega Patron
Mega Patron

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

AnimeshP_96
Tera Guru

@nowitsvashu 

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