Redirect to other page using UI action in Service portal form

Pritam Mangrulk
Mega Contributor

Hi All,

I have requirement to redirect to different URL on click on UI button/link. Created server side UI action with below code but its not working.

var customURL="/csm";

action.setRedirectURL(customURL);

I can't use window.open() or g_navigation.open() functions because client side codes are not supported on UI action in service portal.

Any help will be appreciated, Thanks.

 

3 REPLIES 3

Pranesh072
Mega Sage
Mega Sage

setRedirectURL() operations are ignored, due to the fact that Service Portal forms do not handle redirection the same way that forms in the platform do.

 

You have to customize the form widget. 

 

https://serviceportal.io/docs/documentation/form.md

Hi ,

please let me know what will be the solution for redirection in portal