Thanks, I hadn’t thought of using the URL as the data source.
I don’t think that will work in my current use case because I need people to be able to manually add a parameter to the URL to get a particular piece of data highlighted on the page. So it needs to be like “x=123” rather than the unique id of a Bubble thing.
Now that I see that reusable elements can exchange data through custom states as long as you create the custom state in the reusable element editor first (that nuance had escaped me). Thanks @gaurav
I don’t think that will work in my current use case EITHER (ugh) because the reusable element is in a repeating group (it’s a reusable element because I already use it on at least one other app page). A reusable element on its own does show up as an option in workflows with its custom states, but it disappears when it goes into a repeating group.
So the question should be, how to pass both a data source (thing) and one or more parameters to a reusable element inside a repeating group.
My use case is a list of project steps (in the repeating group). The step itself has a header and a body (in the reusable element). Clicking the header can show/hide the body. I’d like the user to be able to add a parameter to the page URL (such as step=123) so that when the page loads the step with the number 123 is expanded automatically. That way people can share links to an exact step in the project.
It would be fine to have the value 123 assigned to the custom state of every reusable element in the repeating group. Then I could have each step check the value it’s got from its cell against the value in the custom state.