ref qualifer on catalog variables

ServNowDev
Tera Guru

I am mimicking the same function on the incident form where I have a software field, and it gets the value of the CI field and calls a script include that returns the software related to the CI , im doing the same on the portal but seems like the function is not working , is there a particular way of doing this in the Catalog 

 

ServNowDev_0-1734362646998.png

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@ServNowDev 

while passing the variable value it should be with this syntax

current.variables.variableName

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

tried that format as well and it seems to still not work is there any other reason why??

Hi @ServNowDev ,

 

Check the name properly, if any mismatch in name it wont work, Also script include should be client callable checkbox checked.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Runjay Patel
Giga Sage

Hi @ServNowDev ,

 

You have syntax error in your code, used below code.

javascript:new myscriptInclude().getSoftwareCI(current.variables.cmdb_ci);

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------