Begin repeat and End repeat

Hi all,

My question is I want to input the name of all the family members of a family via 'Begin repeat'.
Let say in the first repeat the input name is "A" but in the second repeat if once again the name is given "A" then it should show the name is already given.
Is it possible to validate it??

Thanks for your reply.

Regards
Shadaab

if you can set a constrant by ussing following formula constraint=2<=.Count(name)

Shadaab,

And what if you have two people with the same name in the same family?
It's not uncommon...

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Tue, Jan 14, 2014 at 10:01 AM, Saeem Arif saeem.arif@gmail.com wrote:

if you can set a constrant by ussing following formula constraint=2<=.Count(name)

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Saeem,
the code u gave is not working for me. :frowning:
I tried to modify your code but it also didn't worked.

regards
shadaab

Hi Yaw,
U r correct that two people with the same name are common in a family but let there is an organisation of 3 members, if we input the member id of the members in a begin repeat and the 1st member entered his id as 1, then the 2nd member also entered the id 1 then it should show "invalid input" since member id with 1 is already been given. now is it possible to validate it??

regards
shadaab

could you send your xml?then i could solve the problem.

··· On Jan 17, 2014 12:09 PM, wrote:

Hi Yaw,
U r correct that two people with the same name are common in a family but
let there is an organisation of 3 members, if we input the member id of the
members in a begin repeat and the 1st member entered his id as 1, then the
2nd member also entered the id 1 then it should show "invalid input" since
member id with 1 is already been given. now is it possible to validate it??

regards
shadaab

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/ZQGhFQ-wmAs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.