Hello Bubble community !
I would like make a change to a list only when a specific field of all items of a list is not empty. (on backend workflow)
When I write :
Only when
List Item#1’s specific field is not empty AND List Item#2’s field is not empty ….
IT WORKS
– but the problem is I don’t know how many items of a list a user will create. And when I add item#3 when there is only 2 items, it doesn’t work anymore …
But When I write :
Only when
List each specific field is empty :count is 0 …
IT DOESNT WORK ANYMORE
I don’t see how else to write it. Could someone help me?
See attachement !
Thank you very much !!
There’s no bug here…
Let’s break down your expression:
Search for 02.02 Lieu - Souhaitss
This will return a list of ‘02.02 Lieu - Souhaitss’
Each item's Combien budget is empty
This will check the Cobien (budget) field for each item, to see if each one has a value or not, returning a yes/no for each item in the list.
So this will evaluate to a list of yes/no values (the same number as the number of things in the list)
Count is 0
This will evaluate to true if the number of yes/no values is 0 - which will only be the case if the number of items returned from the search is also 0.
So, assuming the search returns any results, this will always be false, and your Action won’t run.
It’s not clear exactly what you’re trying to do, but you’ll probably need to apply a filter - either directly to the list to change, or to the list in your only when condition, to achieve it.
Oh THANK YOU VERY MUCH !
I solved my problem like that (add my condition to the filtre and not on the expression) :
1 Like