List validation for unique items

Hi,

I need to create validation for list question for unique (description of persons).
I was trying to create macro but it doesnt work, do you have any idea how to do it?

Thanks

for (var i = 0; i < List_osob.Length; i++)
    {
        if (List_osob.Count(x=>x.Item2 == List_osob[i].Item2)>1) return true;
    }
return false

See discussion here:

No need for a macro. You can simply use a regular validation condition expression at the respective question:

self.Select(x=>x.Item2.ToUpper()).Distinct().Count()==self.Count()

The .ToUpper() element aims to make the list elements more comparable (all in upper case). You can also consider to remove any whitespace etc.

Hope that helps?
Best
Peter