Avoid Duplicate in Indexed Repeated

Pod Count and Flowering_xlsform.xlsx (16.2 KB)

Dear All

Can you help me to find the constrain pattern for my form?
Let me give the brief explanation,

I have each sample tree, for example sample tree 1 with identity A
In this sample tree can contain more than one criteria pod
For example in this tree has 2 small and 2 medium pod
I want to make constraint, when the surveyor input the id of 2 small pod in the same identity, they will get the error message or not allowed. But when it continue to other sample tree like sample tree B, when it have 2 small pod but the identity same with sample tree identity A the data are allowed or the constraint no applicable.

Please help me to find the way on how I can apply this concept on my kobo form.
I also attach the xls form, so everyone can try this form to find the way

Many thanks

Welcome back to the community, @chur! This post discussed previously should help you solve your issue:

Hai @Kal_Lam
I’ve tried those step, but there’s some warning message
Can you help me to explain and solve this?