Require text if barcode not read

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

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, skemp255@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: 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.

Thanks That works.

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. >

Steve,

Relevance doesn't work reliably when questions are on the same page.
https://opendatakit.org/help/form-design/workarounds/

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 Fri, Jun 24, 2016 at 2:26 PM, steve kemp skemp255@gmail.com wrote:

Thanks That works.

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.

--

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.