<output> not outputting?

Hello group:
I've been working with Collect for some years, with form download and data
storage using my own custom server.
But I've just tried to use the function for the first time, to
incorporate the answer to a previous question in the of a
subsequent question, as described here:

https://opendatakit.org/help/form-design/body/

But I can't make the tag output anything. Here's an example form,
which requests a value ("Hours?"), then should display that value in the
of a confirmation signature field.

<?xml version="1.0"?>

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms">

<h:head>
<h:title>My Form</h:title>

<
instance>








*</*instance>

Hours? Hours: - please sign to confirm:

In Collect, when prompted for "Hours?" I can enter a number and the form stores it correctly, but the subsequent element label appears as "Hours: - please sign to confirm". The instruction doesn't display anything.
Can anyone shed any light?
One possibility - I'm not using the very latest Collect build (I think my current fork was from 1.4.10), so is the feature only supported in recent versions?

Grateful for any thoughts!
Nik

The value="data/signoffgroup/hours" is missing a leading slash. This makes
the reference point to either

/data/siggroup/sig/data/signoffgroup/hours

or

/data/siggroup/data/signoffgroup/hours

depending upon an existing off-by-one-level error in the referencing of
".".

To fix the issue, change it to

value="*/*data/signoffgroup/hours"

(output has been available from the beginning of time)

··· On Tue, Mar 14, 2017 at 6:46 AM, blitheringeejit via ODK Developers < opendatakit-developers@googlegroups.com> wrote:

Hello group:
I've been working with Collect for some years, with form download and data
storage using my own custom server.
But I've just tried to use the function for the first time, to
incorporate the answer to a previous question in the of a
subsequent question, as described here:

https://opendatakit.org/help/form-design/body/

But I can't make the tag output anything. Here's an example
form, which requests a value ("Hours?"), then should display that value in
the of a confirmation signature field.

<?xml version="1.0"?>

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms">

<h:head>
<h:title>My Form</h:title>

<
instance>








*</*instance>


Hours? Hours: - please sign to confirm:

In Collect, when prompted for "Hours?" I can enter a number and the form stores it correctly, but the subsequent element label appears as "Hours: - please sign to confirm". The instruction doesn't display anything.
Can anyone shed any light?
One possibility - I'm not using the very latest Collect build (I think my current fork was from 1.4.10), so is the feature only supported in recent versions?

Grateful for any thoughts!
Nik

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

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

Mitch - many thanks, and apologies for bringing a simple syntax error to
the group. My embarrassment is hopefully punishment enough. :slight_smile:
Kind regards
Nik

··· On Tuesday, March 14, 2017 at 5:36:43 PM UTC, Mitch wrote: > > The value="data/signoffgroup/hours" is missing a leading slash. This makes > the reference point to either > > /data/siggroup/sig/data/signoffgroup/hours > > or > > /data/siggroup/data/signoffgroup/hours > > depending upon an existing off-by-one-level error in the referencing of > ".". > > To fix the issue, change it to > > value="*/*data/signoffgroup/hours" > > (output has been available from the beginning of time) > > > On Tue, Mar 14, 2017 at 6:46 AM, blitheringeejit via ODK Developers < opendatakit...@googlegroups.com > wrote: > >> Hello group: >> I've been working with Collect for some years, with form download and >> data storage using my own custom server. >> But I've just tried to use the function for the first time, to >> incorporate the answer to a previous question in the of a >> subsequent question, as described here: >> >> https://opendatakit.org/help/form-design/body/ >> >> But I can't make the tag output anything. Here's an example >> form, which requests a value ("Hours?"), then should display that value in >> the of a confirmation signature field. >> >> <?xml version="1.0"?> >> >> >> >> My Form >> >> < >> *instance>* >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> * >> >> > /> >> >> >> >> >> >> Hours? >> > "image/*"> >> Hours: - please sign >> to confirm: >> >> >> >> >> >> >> >> In Collect, when prompted for "Hours?" I can enter a number and the form stores it correctly, but the subsequent element label appears as "Hours: - please sign to confirm". The instruction doesn't display anything. >> Can anyone shed any light? >> One possibility - I'm not using the very latest Collect build (I think my current fork was from 1.4.10), so is the feature only supported in recent versions? >> >> Grateful for any thoughts! >> Nik >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Not a problem. These sorts of errors are always hard for the author to
find. That's what this list is for.

··· On Wed, Mar 15, 2017 at 3:35 AM, blitheringeejit via ODK Developers < opendatakit-developers@googlegroups.com> wrote:

Mitch - many thanks, and apologies for bringing a simple syntax error to
the group. My embarrassment is hopefully punishment enough. :slight_smile:
Kind regards
Nik

On Tuesday, March 14, 2017 at 5:36:43 PM UTC, Mitch wrote:

The value="data/signoffgroup/hours" is missing a leading slash. This
makes the reference point to either

/data/siggroup/sig/data/signoffgroup/hours

or

/data/siggroup/data/signoffgroup/hours

depending upon an existing off-by-one-level error in the referencing of
".".

To fix the issue, change it to

value="*/*data/signoffgroup/hours"

(output has been available from the beginning of time)

On Tue, Mar 14, 2017 at 6:46 AM, blitheringeejit via ODK Developers < opendatakit...@googlegroups.com> wrote:

Hello group:
I've been working with Collect for some years, with form download and
data storage using my own custom server.
But I've just tried to use the function for the first time, to
incorporate the answer to a previous question in the of a
subsequent question, as described here:

https://opendatakit.org/help/form-design/body/

But I can't make the tag output anything. Here's an example
form, which requests a value ("Hours?"), then should display that value in
the of a confirmation signature field.

<?xml version="1.0"?>

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms">

<h:head>
<h:title>My Form</h:title>

<
instance>








*</*instance>


Hours? Hours: - please sign to confirm:

In Collect, when prompted for "Hours?" I can enter a number and the form stores it correctly, but the subsequent element label appears as "Hours: - please sign to confirm". The instruction doesn't display anything.
Can anyone shed any light?
One possibility - I'm not using the very latest Collect build (I think my current fork was from 1.4.10), so is the feature only supported in recent versions?

Grateful for any thoughts!
Nik

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

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

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

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