RG scroll to entry vs back button/action

Hello Bubblers,

I would need some help as I spent a lot of time on this problem I have and can’t resolve.

My app is nearly a SPA, with hidden group. I have a RG which is a list of product. When the user clicks on a RG item, the group containing the RG is hidden and the group containing product details is displayed.

To come back to the list of product, the user can either perform a back action via the browser, either click on a back button (go to previous page action).

The problem i have is : how to scroll the previously clicked RG item, in order for the user to not scroll from the begining to see the products following this clicked RG item ?

I tried several things, but no success (states, store the ID in the database, URL parameter). I haven’t found a clean way to scroll the a RG item after a “back” action… But I’m pretty sure it’s possible, and can’t believe nobody had the same use case, it’s a must have for our Bubble apps.

Many thanks for any help you could provide !

Cheers

image

1 Like

Hello @cmarchan

I know this action to perform the elected scroll, the point here is to find a clean way to store the RG item ID before leaving the page of the RG, then to retrieve this ID and use it to scroll the RG when the user is back to the RG page.

Using url parameter is not a clean option, as we can remove on the fly a parameter (after the effective rg scroll)

This topic was automatically closed after 70 days. New replies are no longer allowed.