I hope somebody can help or at least tell me that the way I am doing this is the best way to do it.
So I have a list of products and I want the user to decide how this list will be filtered.
To give you an example:
The user can click on one of the buttons and the list gets filtered accordingly. (just an example I worked here with states on the buttons. User clicks on the button and its state gets to Yes)
This works fine. However it is a bit messy and I get more and more conditions on the RG. What if I get more and more options which can coexist/get selected at the same time. Lets say the user can select: 24h Shipping, Price under 50, category x, color blue (etc.)
Do I still work here with conditions on the repeating group which selects the correct Search based on which buttons have been clicked? Or is there another way which I am not aware of at the moment?
Would be awesome if somebody could point me in the right direction.
I ran into something similar. How I fixed this was by creating a new field for the user in the database and just setup the conditionals on the repeating group to change according to that user’s field.
I will give this approach a try. btw. Do you know if this goes against your workflow count? I would say yes because you are triggering workflows which are changing data fields (not like workflows for navigation which do not count). This could be a minus.
You are correct, it does cost a workflow. Alternatively, you can store data into an element on the page. So instead of sending it to a user’s field, you can set a state on an element.