Redirecting a form on load

joeb_
Kilo Explorer

From an onLoad client script I want to re-direct the user back to the associated change record if certain conditions exist.  

I've tried the following:

window.location="nav_to.do?uri=change_request.do?sys_id=[change record sys_id]";

It does re-direct to the appropriate page, but the page is loaded in the current frame (where the change_task form was loaded).   This is not a problem except that It loads another set of frames nested within the existing frame - including another copy of the navigation pane.   If I attempt to load the change_task again I get yet another set of frames etc..

All I want to do is load the change_record content in the current frame - nothing else.

Any ideas?

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Joseph,



Adding nav_to.do?uri= at the beginning of a url is the way to open it up within the main frameset. Try just change_request.do?sys_id=[change record sys_id]


View solution in original post

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Joseph,



Adding nav_to.do?uri= at the beginning of a url is the way to open it up within the main frameset. Try just change_request.do?sys_id=[change record sys_id]


joeb_
Kilo Explorer

That solved the issue.   I figured I was missing something simple.   Thanks so much.