How to create a do when condition on a fixed rg on the current cell

Context:
I have a repeating group (RG) in my app that displays products, but only one cell is shown at a time. When a user views the product in the current cell, I want the app to automatically navigate to the next cell containing a product that the user hasn’t seen yet.

What I Tried:
I thought of using a “Do when condition is true” workflow. The idea is to check a field in the database that indicates whether the user has already viewed the current cell’s product (e.g., a viewed field set to “yes”). If the condition is met, the workflow should trigger an action to show the next cell in the RG.

The Issue:
However, I’m having trouble accessing the data type of the current cell to check its viewed status. When trying to set up the condition, all I get is a general reference like “Portfolio’s list of products: each item’s…”, rather than directly referencing the current cell’s product.

Question:
Is there a way to directly check if the current cell’s product is already viewed and then automatically show the next unviewed product in the RG?

Any help or advice would be greatly appreciated!

Best regards,
Lars

I now created a loop with a index that counts the products and now loops through the showbox with the easy loop plugin somehow solved it but now my workflow is up :frowning:

if anyone got asolution for this whiche requires only one workflow i would be pretty thankful

One trick is to put a reusable element inside the cell instead. Then when you edit the reusable element that allows for the When condition is true event and gives you options specific to the reusable element’s Thing.

1 Like

Thank you for your reply! Unfortunately, I couldn’t achieve the result you described. I grouped the elements from the cell and created a reusable element using that group. However, when I placed this reusable element into the repeating group’s cell, the condition related to the current cell still didn’t appear.

Actually you can do Portfolio’s list of products:item # Portfolio’s page number to get the one you are looking at.

But would it be better to just add a constraint to the data source to leave out ones already viewed?

1 Like

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