UI Builder: How can I reload a page via button?

Jonas27
Kilo Guru

I want to reload a page in UI Builder by clicking a button. How can I do this? By using a client script? By using a script include?

9 REPLIES 9

Rick25
Kilo Guru

I have the same need. Anyone have a solution?

Community Alums
Not applicable

Were you able to find a solution? Can you please share if you did

No. Still looking for a solution.

Marc Mouries
ServiceNow Employee
ServiceNow Employee

can you share a screenshot of what you are trying to refresh?

V_ Tran
Kilo Expert

In a client script, there's a 'helpers' object you can look into. The helpers API has a navigate to that lets you change the route.  Maybe navigating to the same route again will refresh the current page.

https://docs.servicenow.com/en-US/bundle/sandiego-application-development/page/app-store/dev_portal/API_reference/helpers/concept/helpersAPI.html#helpers-nav-to_S_O_O_B_B_S