The CreatorCon Call for Content is officially open! Get started here.

After clicking the button I want to redirect the form to a new record from another table.

Saikeerthana
Tera Contributor

Hi All,

On clicking the button in ATM Card table(table 1) form the page should redirect to another new form from table 2. I used the below code but it is not working.   

find_real_file.png

function createSSGDUser() { 

var url = 'x_751152_my_custom_ssgd_bank_user_registration.do?sys_id=-1';
    action.setRedirectURL(url);
}

Thanks in Advance!

1 ACCEPTED SOLUTION

Abhijit4
Mega Sage

You can try below instead,

function createSSGDUser() { 

var url = 'x_751152_my_custom_ssgd_bank_user_registration.do?sys_id=-1';
    top.window.location=url;
}

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

View solution in original post

1 REPLY 1

Abhijit4
Mega Sage

You can try below instead,

function createSSGDUser() { 

var url = 'x_751152_my_custom_ssgd_bank_user_registration.do?sys_id=-1';
    top.window.location=url;
}

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP