How to redirect from one form to another form in Service Portal

venkateshdhanap
Tera Contributor

Hi All,

I have 2 catalog items "Access form" and "Account creation form" 

I need to redirect to "Access form" from "Account creation form" based on the condition checked in the Onchange client script..Script is working but it is redirecting to New form 

Tried with these but not working

producer.redirect='link for new form';

document.location='link for new form';.

Please reply me anyone have idea in this

 

Thanks

 Venkatesh Dhanapal

 

 

1 ACCEPTED SOLUTION

saurav1
Kilo Expert

Hello,

Please Use top.window.location="your URL to another form";

PLEASE HIT LIKE AND MARK HELPFUL if found useful.

 

View solution in original post

6 REPLIES 6

saurav1
Kilo Expert

Hello,

Please Use top.window.location="your URL to another form";

PLEASE HIT LIKE AND MARK HELPFUL if found useful.

 

Thanks For the response..Its working

Hello Venkat,

Can you Please mark my answer as helpful it will help me earn some point if I really helped you.

Ravi Kiran6
ServiceNow Employee
ServiceNow Employee

HI,

 

Kindly add the following code to your OnChange Client script.

var URL = "http://xxxxxxxxxxx.com/sc_req_item.do?sys_id=<ID>";
top.window.location = URL;

 

If it fixed the issue, Kindly hit Like and Mark Helpful.

 

Regards,

Ravi Kiran T.

@Servicenow.