Conditional questions and rearranging questions

I am using ODK Build to write a data collection tool. Please can someone explain how I can arrange it so that future questions are dependant on previous answers. I have tried dragging branch in to the table, but it is not clear how to use it.

Also, on the website it says that it is possible to rearrange questions by drag and drop, but I am finding it not possible to do this.

Many thanks

For each question or group, open the Advanced section and define a
Relevance condition.

If that evaluates to false, then the question or group of questions will
not be asked.

Reordering does work -- just click-and-hold the question box in the left
pane, dragging the question box up or down to reorder it.

··· On Thu, Apr 9, 2015 at 5:27 AM, wrote:

I am using ODK Build to write a data collection tool. Please can someone
explain how I can arrange it so that future questions are dependant on
previous answers. I have tried dragging branch in to the table, but it is
not clear how to use it.

Also, on the website it says that it is possible to rearrange questions by
drag and drop, but I am finding it not possible to do this.

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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thanks Mitch,
I have worked out reordering - was just dragging in the wrong area.

For the Relevance condition, how do I word the Custom expression? Eg. if
this question should only be shown if the answer to the previous question
(data name: cons) is 'yes, value=1', then what do I write in the box?
cons=1? or something similar?

Thanks,
Rae

··· On Thursday, 9 April 2015 21:58:19 UTC+2, Mitch Sundt wrote: > > For each question or group, open the Advanced section and define a > Relevance condition. > > If that evaluates to false, then the question or group of questions will > not be asked. > > Reordering does work -- just click-and-hold the question box in the left > pane, dragging the question box up or down to reorder it. > > > > On Thu, Apr 9, 2015 at 5:27 AM, <rmw...@gmail.com > wrote: > >> I am using ODK Build to write a data collection tool. Please can someone >> explain how I can arrange it so that future questions are dependant on >> previous answers. I have tried dragging branch in to the table, but it is >> not clear how to use it. >> >> Also, on the website it says that it is possible to rearrange questions >> by drag and drop, but I am finding it not possible to do this. >> >> Many 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. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

On reordering. I have tried this on my mac - where it seems to work, but on
my PC I cannot click and drag. Is there anything extra I need to do or
check for this to work on my PC?

Thanks

··· On Friday, April 10, 2015 at 9:33:57 AM UTC+2, Rae Wake wrote:

Thanks Mitch,
I have worked out reordering - was just dragging in the wrong area.

For the Relevance condition, how do I word the Custom expression? Eg. if
this question should only be shown if the answer to the previous question
(data name: cons) is 'yes, value=1', then what do I write in the box?
cons=1? or something similar?

Thanks,
Rae

On Thursday, 9 April 2015 21:58:19 UTC+2, Mitch Sundt wrote:

For each question or group, open the Advanced section and define a
Relevance condition.

If that evaluates to false, then the question or group of questions will
not be asked.

Reordering does work -- just click-and-hold the question box in the left
pane, dragging the question box up or down to reorder it.

On Thu, Apr 9, 2015 at 5:27 AM, rmw...@gmail.com wrote:

I am using ODK Build to write a data collection tool. Please can someone
explain how I can arrange it so that future questions are dependant on
previous answers. I have tried dragging branch in to the table, but it is
not clear how to use it.

Also, on the website it says that it is possible to rearrange questions
by drag and drop, but I am finding it not possible to do this.

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

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

Use a different browser. The drag/drop should work in Firefox and Chrome.
In Firefox, there is a possibility that an extension you have is causing an
issue.

I would not be surprised if it were broken in IE.

=========syntax=============
When reading our documentation, keep in mind that there is the "XLS" syntax
for expressions which is identical to the "XML" syntax except that it
represents field names using ${fieldname}. The XLSForm tool converts this
shorthand into the needed XML syntax.

When writing constraints in Build, you will write them in "XML" syntax.

The documentation here https://opendatakit.org/help/form-design/binding/
has examples in the XML syntax.

Note that a period (".") refers to the current field ( ${fieldname} ).

And two periods ("..") refers to the immediately enclosing group or repeat.

So "../field2" would refer to a "field2" question within the current
question's immediately-enclosing group or repeat.

The "XLS" syntax: ${fieldname} expands into a fully qualified XPath to the
field, such as "/data/myrepeat/displaygroup/fieldname"

And, to complicate matters, the relative references do not work as one
might expect when used in a select choice filter, as documented on another
recent thread.

Most people use XLSForm for form design. Build is good for smaller forms
and getting started, but is difficult to work with if you need many
constraints or have 50+ questions.

··· On Fri, Apr 10, 2015 at 3:02 AM, Rae Wake wrote:

On reordering. I have tried this on my mac - where it seems to work, but
on my PC I cannot click and drag. Is there anything extra I need to do or
check for this to work on my PC?

Thanks

On Friday, April 10, 2015 at 9:33:57 AM UTC+2, Rae Wake wrote:

Thanks Mitch,
I have worked out reordering - was just dragging in the wrong area.

For the Relevance condition, how do I word the Custom expression? Eg. if
this question should only be shown if the answer to the previous question
(data name: cons) is 'yes, value=1', then what do I write in the box?
cons=1? or something similar?

Thanks,
Rae

On Thursday, 9 April 2015 21:58:19 UTC+2, Mitch Sundt wrote:

For each question or group, open the Advanced section and define a
Relevance condition.

If that evaluates to false, then the question or group of questions will
not be asked.

Reordering does work -- just click-and-hold the question box in the left
pane, dragging the question box up or down to reorder it.

On Thu, Apr 9, 2015 at 5:27 AM, rmw...@gmail.com wrote:

I am using ODK Build to write a data collection tool. Please can
someone explain how I can arrange it so that future questions are dependant
on previous answers. I have tried dragging branch in to the table, but it
is not clear how to use it.

Also, on the website it says that it is possible to rearrange questions
by drag and drop, but I am finding it not possible to do this.

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

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com