I have a multi-page App with the navigation menu that open each page. For certain pages I need to clear some components when the page is open; like having an event on page opening to trigger changes on the components within the page.
I haven't seen anything like events when loading pages. Is this possible?
The use case scenario is that one page allows users to add an order but the requirement is that each time the user select the order menu option the order page components need to be cleared.
Thanks
Hi @Dataland,
Thanks for reaching out. We don't currently have an "on page load" event handler trigger for multipage apps, but I've filed this request internally with the team.
For your specific use case -- can you elaborate more on why you need to clear components on the order page when it's loaded? I believe all of a page's components should start from their original state when that page is loaded.
Hi @Erin_Masatsugu 
Thanks for your response.
One of the menu options allows the end user to add an order, but if the user goes to another page and then comes back, the order form should be cleared. The ideal would be to clear the form when the page is loaded.
Thanks
Hm, I would expect the order form to be cleared by default when the user navigates back to that page. How is the user navigating between pages?
I am using the navigation mapped to the app pages. Moving between pages don't reset anything anywhere.

Is the order form mapped to some datasource? I am not able to reproduce this behavior on my end (I created a form, filled out some of the inputs, navigated to another page and back, and see that the form is reset).
I have more details in the form than the fields associated with the data source.
I ended converting my query to global one and run it through a navigation click but only running it when the page is the one that I need. Maybe a workaround to page load events:

On the image item.id corresponds to the id of the page that is going to be loaded.
1 Like