Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Related Link on Change Request redirecting to hiperlink

New user1212
Tera Contributor

Hi,
I want to create a related link on the Change Request form which, when clicked, will redirect to another page, but I don't know how to do it.
I created UI Action but I don't know how to make it redirect me to another page.

Newuser1212_1-1718813445045.png

 

 

 

2 ACCEPTED SOLUTIONS

Hi @New user1212 ,

 

Check the field named Client to true and in onClick field define redirectRecord()

 

The final script will be as below:

function redirectRecord(){
url = "<your_URL_here>";
g_navigation.openPopup(url);
}

Remove the line: 

 

action.setRedirectURL(current);

 

 

Please try the above.

 

Please Mark My Response as Correct/Helpful based on Impact

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

View solution in original post

I have updated the above, please check

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

View solution in original post

5 REPLIES 5

I have updated the above, please check

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.