First off, Cognito forms is awesome.. Amazing tool.

I have a club selection and a waiting list selection. I want people to be able to put their name down on the waiting list if there are no places... but not to accidentally add themselves if they've already chosen a club with spaces.

Im having trouble getting multiple repeating sections to block duplicate entries from a dropdown.

The code Im using works if there is only one option selected. See image - the error comes up.


If however if add a second entry to the first section, the validation no longer works.

enter image description here

The second image shows two clubs added. It submits! But football already chosen Problem.

enter image description here

1 Answer 1


All you need to do is switch your terms. Change this,




the correct calculation being.


The reason it was not working was because the String, "Football, Football" is not contained within the String "Football"

You can experiment with this yourself

="Hello".Contains("Hello, Dolly")


="Hello, Dolly".Contains("Hello")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.