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

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Why exactly are you looking to do an entire page refresh? You should be able to refresh and individual data resource if you want fresh data so the browser doesn't have to reload the whole page.

I'm not sure there's a great way to refresh the entire page currently, but you could look at the helpers to see if there's something there.

Jonas27
Kilo Guru

The page I'm working on has multiple different components for filtering (including a dropdown component) and I want to build a reset button for the filters. The easiest way would be to just reload the page. We also had some other situations where reloading a page would have been a good solution. 

Community Alums
Not applicable

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

Marc Mouries
ServiceNow Employee
ServiceNow Employee

in this scenario, I'd suggest adding a "reset" script that will reset the value selected in the different filters and the dynamic binding will take care of the reset