reload form using UI Action

soukayna
Tera Contributor

hello,

i want to reload my form when i click on a button how can i do it ???

thanks

1 ACCEPTED SOLUTION

BALAJI40
Mega Sage

location.relod(true)


use above line of code in ui action script


View solution in original post

7 REPLIES 7

hi Mihir Mohanta;


thanks for ur help.


Abhijit4
Mega Sage

Hi All,

Using location.relod(true) is not servicenow best practice.

We do have servicenow provided object to do the same "g_navigation.reloadWindow();".

Writing this just in case someone finds it useful in future, I also used "location.relod(true)" in one of my development purpose and we got few issues that it was intermittently not working in some of the browser and "g_navigation.reloadWindow()" works fine in every browser.

 

Thanks.

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

Hey Cody, good to see you responded to one of the old thread with your new findings. Keeping the old stuff updated.

Thanks buddy.