Hello!
First time bubble.io-er here!
I am trying to add conditions to my repeating group based on search results.
I have integrated Exa.ai into a search bar and would like to colour different cells within the repeating group based on search returns.
For example (Australian based hence returns);
If one URL has org.au in it, the cell within repeating group turns blue.
If another URL has gov.au in it, the cell within repeating group turns green.
Now, I can get the results to show the URL however no change in colour even when adding conditional formatting.
Some research showed I perhaps need these āchanges to a thingā in the workflow as well to reflect the conditional formatting.
Along the way trying to make it work, I think I got lost between trying to trigger text and using hex code for colours between workflow and conditions.
Any help would be great, I feel like I am going in circles.
Hey there! This should absolutely be possible with conditional formatting (no need to do anything in the workflows, I donāt think!) Iām curious about the structure of your repeating group⦠I bet you might just be putting the conditional formatting on the wrong thing. Hereās a screenshot of a little test I did in one of my apps to just see if I could do what youāre describing⦠I put the conditional formatting on the text field where Iām displaying the text that I want to be a different color depending on what the content is (so, itās a couple of levels down from the repeating group in the UI Builder). If you share I screenshot of the UI Builder, I can probably tell you where that conditional formatting should go!
Thanks for the quick reply!
I thought perhaps my conditioning isnāt reading my arbitrary text correctly or possibly could be from my data set, however itās purely changing colour based on results so I didnāt think it could be that.
Is it possible to conditionally change the cellās background colour within repeating group, say I have 5 results per search? I may have different conditional colours appear inside the same search (green, blue etc) If not, I can revisit my design when it comes to building the visuals.
Here is a screenshot of my UI Builder and current conditional format.
glen
4
Hiya, from what I can see, youāre trying to do conditional formatting on the Repeating Group as a whole⦠which I donāt thinks is possible/right in your situation.
Try putting the conditional either on the text cell in your RG, or if thatās in a group, put the conditional on that group. ie. the thing you want to change the background of.
The idea is to put multiple conditional statements there.
For instance:
First Conditional - If current cellās AI Search resultās url contains arbitrary text ".gov.auā, then background colour [whatever].
Second Conditional - If current cellās AI Search resultās url contains arbitrary text ".org.auā, then background colour [whatever, next colour].
Third Conditional - etc.,
So to recap, you donāt apply conditionals to the RG as a whole, you apply the conditional to the specific thing you want to change, i.e. the background of the text, or the group the text is sitting in.
Iāve got one other tip for you if you try that successfully. Just start with 1 conditional and then hit me up for the tip
Thank you all! I managed to get it to work, the individual formatting worked, I also had to remove the quotation marks.
Now to keep refining to make something pretty.
Thanks again
1 Like
Yay!!! So glad you got it working! 