[UI BUILDER/WORKSPACE] Refresh page or ui components instead of data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 03:02 AM
Hi SN Experts,
I created a new experience on UI Builder with pills that applies filter on the page (With client scripts and client state parameter when click)
The "Reset Filters" button remove all applied filters.
The issue :
When those filters a removed, data are reloaded but not the html elements.
The solutions i need is a client script code to :
- Hard reload the entire page
- Hard reload the pill list UI component and not only data.
Thank you in advance for your help,
Julien.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 07:29 PM
The Pill List component does not really handle dynamic lists. For any dynamic list, I recommend using the repeater component. With the repeater the state of the content will be refreshed when the datasource it is bound to is refreshed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 11:39 AM
Hi @DJOUL ,
create client script with this code:
api.helpers.setTimeout(() => {
const window = this.window;
window.location.reload();
})
call this client script on the event you need.
Hope that helps.