Duplicate button redirect on Employee center

gelai
Tera Contributor

Hi,

 

I'm trying to configure the Duplicate UI Action to redirect the form page to the duplicate record on the employee center. However, the action.setRedirectURL does not redirect the form page to the duplicate record. The record is duplicated but stays on the original record.

Can this be done without the need to duplicate the widget? We are not allowed to configure if it's in global scope.

3 REPLIES 3

Shruti
Mega Sage
Mega Sage
Hi,
Try this

action.setRedirectURL("/esc?id=form&table=incident&sys_id=" + current.sys_id+"&view=default"); //Replace table name and sys_id as per the requirement

gelai
Tera Contributor

I tried it but the page still stays on the original record. 

action.setRedirectURL will open it in same tab if you want to open in new tab use window.open(url, '_blank') or g_navigation.openPopup(url) in client side UI action script