Hey!
I have done all the bubble tutorials now and i. have learnt A LOT, differently recommend. However,
Been trying the whole day to figure this out, been trying to follow other tutorials on the forum with the same problem and nothing is working.
I want a user to type in a Color, that color will be added to the database but when another user types the same color it won’t add a duplicate to the database nothing will happen.
Scenario 1: I can type colors and duplicates are allowed and stored in the database
Senario 2: I can type colors but nothing i submits gets registered in the database…
creating a new ‘ColorVault’
but only when there isn’t already an entry in the database that has the same ‘colour’ value as the value entered into the input.
So your ‘only when’ condition is searching the database (do a search for) for all ColorVaults where the ‘color’ field is the same as the value entered into the input.
Then, if that search finds no existing records that match the input’s value (i.e. the count is 0) then the workflow will run and a new ColorVault will be created.
If the search finds that there IS already an entry that matches the input (i.e. the count is anything other than 0) then the workflow won’t run.
If you do it without the constraint (as you did), all you’re doing is searching for ALL existing ColourVaults (of any color), and if there are any more than 0 in the database then the workflow won’t run (as you experienced).