Hi everyone,
I’m struggling with a repeating group and a reusable element, and I’d really appreciate your help!
I have a repeating group displaying posts. Initially, each cell had a context menu that allowed toggling additional elements in the cell or creating things from inside each cell. However, for design reasons, I changed this to a clickable group that toggles a focus group, containing the menu options.
Since the focus group didn’t work correctly inside each cell, I made from the entire context menu a reusable element. This is where my headaches began!
I at least managed to get a popup to show when clicking a menu option inside the focus group by:
Workflow in the reusable element: “Go to (main) page → Send more parameters to the page.”
Workflow on the main page: "Do when the page gets parameters → Show popup.
But I’m still stuck on two major issues:
- How can I send the current cell’s data to the popup?
- How can I toggle an element inside the repeating group cell from a workflow in the reusable element?
Not being able to access elements in the repeating group directly from the reusable element’s workflow is really frustrating. I’d love to hear any suggestions or workarounds.
Thanks in advance for your help!
One of the simplest ways would be to use URL parameters to send data, have you tried that?
Thank you so much for your quick reply. I tried something similar, but the workflow step said something like “expected text value”. But maybe the approach was not correct?
you need to send the ID of the thing.
For example if it was a repeating group of foods you would send the ID or the slug.
User clicks “Big Mac” then the url parameter could be “food=346132987x7634”
Use go to current page and send new params
Thank you for your hint. This is what I have so far.
But now I do not have no clue how to send the data to the popup from there (pic2). Please excuse, I’m still pretty much a beginner and don’t know many of the functions yet.
Do I have to send the uniqueID to the popup from the main page workflow (spark) or get the data from the popup itself?
Many thanks so far!
You could get the data directly in the popup.
I’m not sure what the EventID will do in your app but in my example of food.
Let’s imagine the popup is called “Food Info”
Then your workflow is good so far. The popup would open and you could have a group inside the popup which finds its “thing” via the ID
Do a search for Food where unique ID = get data from page url
Somehow I managed to get the eventID on text level (last picture). But on popup level and group level (group in the popup) the yellow path sends me to nowhere (it gets red after that). I am left with options beginning with “:” But this can’t be correct as far as I know. I woud be grateful if you have a helping hint. But at least, I think I am getting to the solution.
In the first image you just need to change the parameter type to match the database type, that should return 1 Event from the database via the ID.
OR
If you are using the “do a search for” then you need to add a constraint which is uniqueID and pass the url parameter there, and then retrieve the first item.
I’m partially flying blind here because I’m not sure of your full use case. So far I’ve just told you how to get one item through the URL and retrieve it in a group.
Thank you so much for your valuable help! You led me to the solution, and by the way I have learnt a lot of new things today.
I am posting some more pictures with the final solution for all fellows having the same or similar problem.
First two pictures: approach on popup level
Last picture: group level (having inside the text, in this example).
Thank you again and best regards
1 Like