Select Choices from repeat group field and date of birth check

Hi,

I want to implement the following simple scenario in the attached form.

  1. Count the total of repeat group at the end of repeat.
  2. Fields from repeat group as select_one list
  3. Check if user entered date of birth and it must be before today's date
    (the default display date is today date, I want it to be something like
    1/1/2000)
  4. If user didn't entered the date of birth date he must enter Age in years.

I have not gone through xml structure of the form yet, it would be nice if
the scenarios are implemented in XLS form.

Thanks,
Majid

Test.xlsx (15 KB)

Hi Majid,

  1. Use count(${repeat_node}) as a calcuation. http://xlsform.org/#calculation.

  2. https://groups.google.com/d/msg/opendatakit/-PGMHWgnsiQ/2NAB6BvyAAAJ

  3. http://xlsform.org/#constraints

  4. http://xlsform.org/#relevant

If you need examples, please search this very mailing list.

Yaw

··· On Tue, May 16, 2017 at 10:09 PM, Majid Khan wrote: > Hi, > > I want to implement the following simple scenario in the attached form. > > 1. Count the total of repeat group at the end of repeat. > 2. Fields from repeat group as select_one list > 3. Check if user entered date of birth and it must be before today's date > (the default display date is today date, I want it to be something like > 1/1/2000) > 4. If user didn't entered the date of birth date he must enter Age in years. > > I have not gone through xml structure of the form yet, it would be nice if > the scenarios are implemented in XLS form. > > > Thanks, > Majid > > -- > -- > 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/d/optout.
1 Like