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

How to redirect to the parent page from the dialogwindow

randeepnath
Mega Contributor

How to redirect to the parent window from the dialog window.. Any idea on this ?

Thanks in advance

1 ACCEPTED SOLUTION

location.reload(); should work I think


View solution in original post

38 REPLIES 38

randeepnath
Mega Contributor

I want to refresh the parent window ...


location.reload(); should work I think


Ashutosh Munot1
Kilo Patron
Kilo Patron

GlideDialogWindow: Advanced Popups Using UI Pages - ServiceNow Guru



Go to this link.....You can see a script in comments, which shows what should you do to redirect it to specific URL.



Thank you,


ashutosh


randeepnath
Mega Contributor

I will explain -



Actually I have a Button ( UI action ) in incident form screen, not in incident list screen. When I click on that button it is calling a dialogwindow, and there is again another UI action as List choice option ( Actions ), after that successfull opeartaion, dialog window is destroying and page is redirecing to incident List page not in the incident form screen. Actually I am updating the incident notes from the dialog window so that I want users should see the notes after destroying the dialog window, to see the notes that page should refresh right ?



I have tried to use location.reload and setRedirect( ) but i dont know how to refresh the inicdent form screen ...


Now tell me where you want to redirect after destroying your dialog window..on list or on form