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

Ankur Bawiskar
Tera Patron
Tera Patron

@saibharath 

so you are using variable of type custom and linked the macro?

from where is the function called which is present within script tag?

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

Yes I am using variable type of custom.
  It is called in onchange client script.

 

variable 'a' is storing the URL where it needs to be redirected.

@Ankur Bawiskar  any update?

@saibharath 

will the end users use this only in native and not in portal?

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