I need to require that either a barcode is read successfully OR a text field (with an alternative sample identifier) is completed.
Occasionally a barcode fails to read and there is provision for a text field on the same screen. I need to ensure that the text field is completed if the barcode is not recorded. So the 'required' parameter of the text field should be dependent on the presence of a value in the barcode field.
Assuming you have ${barcode_question}, create a ${text_question} where
required is ${barcode_question} = '', then make sure both questions
are on different pages.
Yaw
···
--
Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to
https://nafundi.com to get started.
I need to require that either a barcode is read successfully OR a text field (with an alternative sample identifier) is completed.
Occasionally a barcode fails to read and there is provision for a text field on the same screen. I need to ensure that the text field is completed if the barcode is not recorded. So the 'required' parameter of the text field should be dependent on the presence of a value in the barcode field.
Why do you say the questions should be on different pages? I have them on
the same page and all seems to work as expected.
Steve
···
On Friday, June 24, 2016 at 11:44:54 AM UTC+3, Yaw Anokwa wrote:
>
> Assuming you have ${barcode_question}, create a ${text_question} where
> required is ${barcode_question} = '', then make sure both questions
> are on different pages.
>
> Yaw
> --
> Need ODK consultants? Nafundi provides form design, server setup,
> in-field training, and software development for ODK. Go to
> https://nafundi.com to get started.
>
> On Thu, Jun 23, 2016 at 11:05 PM, <skem...@gmail.com > wrote:
> > I need to require that either a barcode is read successfully OR a text
> field (with an alternative sample identifier) is completed.
> >
> >
> > Occasionally a barcode fails to read and there is provision for a text
> field on the same screen. I need to ensure that the text field is
> completed if the barcode is not recorded. So the 'required' parameter of
> the text field should be dependent on the presence of a value in the
> barcode field.
> >
> >
> > Any ideas how I might do that?
> >
> >
> > Thanks
> >
> > --
> > --
> > Post: opend...@googlegroups.com
> > Unsubscribe: opendatakit...@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...@googlegroups.com .
> > For more options, visit https://groups.google.com/d/optout.
>
···
--
Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to
https://nafundi.com to get started.
Why do you say the questions should be on different pages? I have them on
the same page and all seems to work as expected.
Steve
On Friday, June 24, 2016 at 11:44:54 AM UTC+3, Yaw Anokwa wrote:
Assuming you have ${barcode_question}, create a ${text_question} where
required is ${barcode_question} = '', then make sure both questions
are on different pages.
Yaw
Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to https://nafundi.com to get started.
I need to require that either a barcode is read successfully OR a text
field (with an alternative sample identifier) is completed.
Occasionally a barcode fails to read and there is provision for a text
field on the same screen. I need to ensure that the text field is completed
if the barcode is not recorded. So the 'required' parameter of the text
field should be dependent on the presence of a value in the barcode field.
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.