How to redirect to another URL

sammy12
Kilo Explorer

I want to redirect from "x_snc_diagnosisnow_logindetails" Table to "x_snc_diagnosisnow_searchdoctor" Table after clicking the submit button in first form.

I am inserting the snapshot of the same.

Capture12.PNG

Please tell me how to do this.

3 REPLIES 3

Harish Murikina
Tera Guru

window.location.href = url;


manikorada
ServiceNow Employee
ServiceNow Employee

Samrat,



You don't need to have 'client' checkbox as true.


'action.setRedirectURL' is a server side action.


You can check this from : UI Actions - ServiceNow Wiki


Anurag Tripathi
Mega Patron
Mega Patron

These will run on server side, so if you want to sue this make your ui action client = false



action.setRedirectURL("URL");


action.setReturnURL("URL");


-Anurag