I have asked ChatGPT if he knows how, and I got a answer. I didn’t try it but maybe it works.
Question:
I have a question about bubble.io I have a group which allows vertical scrolling when the content overflows, now I’m trying to add an action on a button to scroll to this element within this group.
I tried the “scroll to element” workflow action, but it doesn’t work since this references full page height? Do you know how to achieve this?
Chatgpt answer:
To scroll to a specific element within a group that allows vertical scrolling, you can use the “Scroll to element” action in combination with the “Find element by ID” action. Here’s an example of how you can do this:
First, give the element that you want to scroll to a unique ID by setting the “ID” attribute of the element in the Element Properties panel.
Next, add a “Scroll to element” action to your workflow and select the group that allows vertical scrolling as the element to scroll.
Add a “Find element by ID” action before the “Scroll to element” action and set the ID of the element that you want to scroll to as the value for the “ID” input field. This will find the element that you want to scroll to within the group.
Connect the output of the “Find element by ID” action to the “Element” input field of the “Scroll to element” action. This will tell the “Scroll to element” action to scroll to the element that was found by the “Find element by ID” action.
Add a trigger for the workflow, such as a button click, to execute the actions.
This should allow you to scroll to a specific element within a group that allows vertical scrolling when the trigger is activated.