Dynamic Texts in Hints

Hello,

I am working on a certain survey which needs some dynamic texts to appear
in the hints text. For example, Based on Q1 response, I would like to
output the value (of question 1) in my hint in the next question i.e. Q2 or
Qn. I need this the way you can do ${q1} in a label. When I do this in a
hint, it does not echo/output the value in Q1.

Thanks in advance.

Allan,

Works for me with the latest build. Attached is a sample form.

Yaw

output.xml (998 Bytes)

output.xlsx (10 KB)

ยทยทยท -- 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 Wed, Jun 1, 2016 at 1:46 PM, Allan Nila Chongwe allanchongwe@gmail.com wrote:

Hello,

I am working on a certain survey which needs some dynamic texts to appear in
the hints text. For example, Based on Q1 response, I would like to output
the value (of question 1) in my hint in the next question i.e. Q2 or Qn. I
need this the way you can do ${q1} in a label. When I do this in a hint, it
does not echo/output the value in Q1.

Thanks in advance.

--

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

Yaw,

Thanks for the reply. I am using ODK Collect 1.4.10 (1061). Unfortunately
it is not working. Attached are my xml, XLSForm and screenshots.

Allan

test-dynamic-hint-and-default-values.xml (2.47 KB)

test-dynamic-hint-and-default-values.xlsx (12.3 KB)

ยทยทยท On Wednesday, June 1, 2016 at 3:11:44 PM UTC+2, Yaw Anokwa wrote: > > Allan, > > Works for me with the latest build. Attached is a sample form. > > 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 Wed, Jun 1, 2016 at 1:46 PM, Allan Nila Chongwe <allanc...@gmail.com > wrote: > > Hello, > > > > I am working on a certain survey which needs some dynamic texts to > appear in > > the hints text. For example, Based on Q1 response, I would like to > output > > the value (of question 1) in my hint in the next question i.e. Q2 or Qn. > I > > need this the way you can do ${q1} in a label. When I do this in a hint, > it > > does not echo/output the value in Q1. > > > > Thanks in advance. > > > > -- > > -- > > 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. >

Yaw,

Sorry to bother you. It works. I omitted the "$" before {q1}. However, this
is not working with the default. How can I have a dynamic default value in
a textbox? Doing this outputs "${q1}".

Thanks in advance.

Allan

ยทยทยท On Thursday, June 2, 2016 at 12:27:33 PM UTC+2, Allan Nila Chongwe wrote: > > Yaw, > > Thanks for the reply. I am using ODK Collect 1.4.10 (1061). Unfortunately > it is not working. Attached are my xml, XLSForm and screenshots. > > Allan > > On Wednesday, June 1, 2016 at 3:11:44 PM UTC+2, Yaw Anokwa wrote: >> >> Allan, >> >> Works for me with the latest build. Attached is a sample form. >> >> 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 Wed, Jun 1, 2016 at 1:46 PM, Allan Nila Chongwe wrote: >> > Hello, >> > >> > I am working on a certain survey which needs some dynamic texts to >> appear in >> > the hints text. For example, Based on Q1 response, I would like to >> output >> > the value (of question 1) in my hint in the next question i.e. Q2 or >> Qn. I >> > need this the way you can do ${q1} in a label. When I do this in a >> hint, it >> > does not echo/output the value in Q1. >> > >> > Thanks in advance. >> > >> > -- >> > -- >> > 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. >> >

Allan,

I'm pretty sure defaults don't support ${} because defaults are loaded
into the model when the form loads and not as you iterate through it.

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 2, 2016 at 1:35 PM, Allan Nila Chongwe allanchongwe@gmail.com wrote:

Yaw,

Sorry to bother you. It works. I omitted the "$" before {q1}. However, this
is not working with the default. How can I have a dynamic default value in a
textbox? Doing this outputs "${q1}".

Thanks in advance.

Allan

On Thursday, June 2, 2016 at 12:27:33 PM UTC+2, Allan Nila Chongwe wrote:

Yaw,

Thanks for the reply. I am using ODK Collect 1.4.10 (1061). Unfortunately
it is not working. Attached are my xml, XLSForm and screenshots.

Allan

On Wednesday, June 1, 2016 at 3:11:44 PM UTC+2, Yaw Anokwa wrote:

Allan,

Works for me with the latest build. Attached is a sample form.

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 Wed, Jun 1, 2016 at 1:46 PM, Allan Nila Chongwe allanc...@gmail.com wrote:

Hello,

I am working on a certain survey which needs some dynamic texts to
appear in
the hints text. For example, Based on Q1 response, I would like to
output
the value (of question 1) in my hint in the next question i.e. Q2 or
Qn. I
need this the way you can do ${q1} in a label. When I do this in a
hint, it
does not echo/output the value in Q1.

Thanks in advance.

--

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.

Yaw,

Thanks. I have just used a hint to inform the user to input the data as
expected. I.e. "You MUST enter 123 below unless otherwise". This might not
be the optimal solution but for now I think it's doing what needs to be
done.

Allan

ยทยทยท On 2 Jun 2016 13:59, "Yaw Anokwa" wrote:

Allan,

I'm pretty sure defaults don't support ${} because defaults are loaded
into the model when the form loads and not as you iterate through it.

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 2, 2016 at 1:35 PM, Allan Nila Chongwe allanchongwe@gmail.com wrote:

Yaw,

Sorry to bother you. It works. I omitted the "$" before {q1}. However,
this
is not working with the default. How can I have a dynamic default value
in a
textbox? Doing this outputs "${q1}".

Thanks in advance.

Allan

On Thursday, June 2, 2016 at 12:27:33 PM UTC+2, Allan Nila Chongwe wrote:

Yaw,

Thanks for the reply. I am using ODK Collect 1.4.10 (1061).
Unfortunately

it is not working. Attached are my xml, XLSForm and screenshots.

Allan

On Wednesday, June 1, 2016 at 3:11:44 PM UTC+2, Yaw Anokwa wrote:

Allan,

Works for me with the latest build. Attached is a sample form.

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 Wed, Jun 1, 2016 at 1:46 PM, Allan Nila Chongwe allanc...@gmail.com wrote:

Hello,

I am working on a certain survey which needs some dynamic texts to
appear in
the hints text. For example, Based on Q1 response, I would like to
output
the value (of question 1) in my hint in the next question i.e. Q2 or
Qn. I
need this the way you can do ${q1} in a label. When I do this in a
hint, it
does not echo/output the value in Q1.

Thanks in advance.

--

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.

--

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 a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/PacR7prT_2g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.