Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Need to keep dynamic href link on catalog form in portal

saibharath
Tera Contributor

I have a requirement to have a dynamic href link on catalog form, on clicking this link it will redirect to my custom table in form view. So I have on change client script where i have been passing this dynamic URL link in a  function and calling this function in a macro, but I am unable to write the script in macro which will redirect it.

 

attaching script which i tried. can someone suggest correct syntax.

11 REPLIES 11

vermaamit16
Kilo Patron

Hi @saibharath 

 

Please check if the below post helps :

https://www.servicenow.com/community/developer-forum/dynamic-hyperlink-on-catalog-item-description-f...

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma

Hello @vermaamit16 

this wont work as my requirement is different , since it is dynamic and the link we are passing is from onchange client script. i.e onchange of a list collector field we pass the sys_ids of all the records which are selected in it and we try to create a URL in onchange client script which then I am passing to a Macro