Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

is it possible to add ref_contributions on variable attributes

srikanthvk
Giga Expert

I have been trying to use a macro on service catalog, I do not want to add it as a UI Macro variable type but want to show it beside a variable like in form fields.

Please help me if any of you tried it earlier. Thanks in Advance.

1 ACCEPTED SOLUTION

srikanthvk
Giga Expert

we have achieved this using one of the scripts provided in servicenowguru.com, below is the link


Refer section add_me UI macro for catalog variables


http://www.servicenowguru.com/system-ui/ui-macros/add-me-ui-macro-user-group-fields/


View solution in original post

11 REPLIES 11

Anurag Tripathi
Mega Patron
Mega Patron

variables do have a OOB type called macro, you can directly sue that


-Anurag

ref_contributions.JPG



yeah that's right but I don't want it to add as OOB macro, I would like to see it as above like in incident form using ref_contributions in variable attributes.


only these are supported



1.png




info:


Variable Types - ServiceNow Wiki


ok, Got it.



Create a variable of type reference only, and there you can add ref_contributions in the attributes fields. Exactly the same way as the dictionaries. If you are on Eureka then attributes will be available under Default Value section.


-Anurag