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.

UI action(related link) inside a UI macro is not redirecting to the catalog

Priya75
Tera Contributor

Hi All, 

 

 

I have a related link (UI action), which seems to be working fine on the table. I am using this form in another table (form view) where i have a button which opens a Window (UI Macro) with fields and the Ui action is also showing in this pop up window, but it is not redirecting me the desired location.

 

var url=https://www.radialdev.servcie-now.com/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=12...

action.setRedirectURL(url);

 

 

 

 

 

 

 

4 REPLIES 4

Community Alums
Not applicable

Hi @Priya75 ,

Try using this logic to redirect:

 

var url = //paste your url here.
window.location.href = "<url>";
OR
top.location.href = “<url>”;
OR
top.window.location = “<url>”;

 

 

Thanks,

Hope this helps.

If my response turns useful please mark it helpful and accept solution.

 

 

not working

Community Alums
Not applicable

Any of the three did not work?

Else share your code with me, complete code

 

no it did not work. this is the complete code.

 

var url="https://"+gs.getProperty("instance_name)+".com/com.glideapp.servicecatalog_cat_item_view.do?v=1&sys...

action.setRedirectURL(url);