Hi everyone, i would like to ask if there is a code on how to set the
default answer of a question in odk.The default answer is from the answer
of the previous question.
Example;
What is the last name of household head?
Ans:lucero
What is the last name of household member 1?
Ans: lucero(default answer from question 1)
Data from previous answers (say Q1) can be used in the same form as
output, but you shouldn't use it to pre-fill a future answer (say Q2)
because the user entered value in Q2 will eventually be replaced if
the user (or app) ever touches the Q1 question.
Yaw
···
--
Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.
Hi everyone, i would like to ask if there is a code on how to set the
default answer of a question in odk.The default answer is from the answer of
the previous question.
Example;
What is the last name of household head?
Ans:lucero
What is the last name of household member 1?
Ans: lucero(default answer from question 1)
I'm trying to do exactly what you propose in your scenario, using ${var} in default and 'yes'in read only. However, I do not manage to pull the data (eg. string), instead the answer is exactly ${var}. Any suggestions? What i am trying to do here is to get HH information repeated in a repeat group as for the data to appear as answers in the repeat group.
Any suggestions?
Thanks in advance,
Genevieve
···
On Wednesday, September 16, 2015 at 2:19:19 PM UTC+2, Yaw Anokwa wrote:
> Hi Ronaldo,
>
> Data from previous answers (say Q1) can be used in the same form as
> output, but you shouldn't use it to pre-fill a future answer (say Q2)
> because the user entered value in Q2 will eventually be replaced if
> the user (or app) ever touches the Q1 question.
>
> Yaw
> --
> Need ODK services? http://nafundi.com provides form design, server
> setup, professional support, and software development for ODK.
>
> On Wed, Sep 16, 2015 at 3:26 AM, Ronald Lucero wrote:
> > Hi everyone, i would like to ask if there is a code on how to set the
> > default answer of a question in odk.The default answer is from the answer of
> > the previous question.
> > Example;
> >
> > 1. What is the last name of household head?
> > Ans:lucero
> >
> > 2. What is the last name of household member 1?
> > Ans: lucero(default answer from question 1)
> >
> > Please help me. Thank you.
> >
> > --
> > --
> > 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.
If this is still a problem you are having, can you post a small 1-3
question form that shows what you are trying to do and the problem you
have?
Thanks,
Yaw
···
On Thu, Sep 22, 2016 at 6:14 PM, genevieve.audet.b@gmail.com wrote:
> Dear Yaw,
>
> I'm trying to do exactly what you propose in your scenario, using ${var} in default and 'yes'in read only. However, I do not manage to pull the data (eg. string), instead the answer is exactly ${var}. Any suggestions? What i am trying to do here is to get HH information repeated in a repeat group as for the data to appear as answers in the repeat group.
>
> Any suggestions?
> Thanks in advance,
> Genevieve
>
> On Wednesday, September 16, 2015 at 2:19:19 PM UTC+2, Yaw Anokwa wrote:
>> Hi Ronaldo,
>>
>> Data from previous answers (say Q1) can be used in the same form as
>> output, but you shouldn't use it to pre-fill a future answer (say Q2)
>> because the user entered value in Q2 will eventually be replaced if
>> the user (or app) ever touches the Q1 question.
>>
>> Yaw
>> --
>> Need ODK services? http://nafundi.com provides form design, server
>> setup, professional support, and software development for ODK.
>>
>> On Wed, Sep 16, 2015 at 3:26 AM, Ronald Lucero wrote:
>> > Hi everyone, i would like to ask if there is a code on how to set the
>> > default answer of a question in odk.The default answer is from the answer of
>> > the previous question.
>> > Example;
>> >
>> > 1. What is the last name of household head?
>> > Ans:lucero
>> >
>> > 2. What is the last name of household member 1?
>> > Ans: lucero(default answer from question 1)
>> >
>> > Please help me. Thank you.
>> >
>> > --
>> > --
>> > 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 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.