Values for skipped questions & Form transisiton

Hello,

Is it possible to have certain questions automatically be answered when
skipped? For example, when I select Q1.2 as 'No', then questions 1.3-1.7
are skipped and not displayed. I would like for all these questions to be
skipped, but also answered as 'No' (value =1). I believe I can do this with
an IF statement, but unsure of where that IF statement should live.

Also, when using case sharing, is it possible to move to the next form when
you come to the end of a form, rather than going back to the home screen,
selecting the client and new form. For example, when coming to the end of a
form, there would be an option, 'Save Form and continue to next section' in
addition to 'Save form and exit'.

Thank you,

Kira

Hi Kira,

When you skip a question (because its display condition is not met), its
value will be empty text (which is represented by two quotation marks: '').
I believe there are workarounds you can use, but to make sure I walk
through the best one, can you explain a bit more about why you want the
value to be no - e.g. is it so that "no" appears in exports or in reports
on CommCareHQ, or because you want the value to be considered as "no" when
it is used in display conditions for other questions?

Thanks,
Amelia

··· On Mon, Dec 16, 2013 at 12:59 PM, Kira Skolas wrote:

Hello,

Is it possible to have certain questions automatically be answered when
skipped? For example, when I select Q1.2 as 'No', then questions 1.3-1.7
are skipped and not displayed. I would like for all these questions to be
skipped, but also answered as 'No' (value =1). I believe I can do this with
an IF statement, but unsure of where that IF statement should live.

Also, when using case sharing, is it possible to move to the next form
when you come to the end of a form, rather than going back to the home
screen, selecting the client and new form. For example, when coming to the
end of a form, there would be an option, 'Save Form and continue to next
section' in addition to 'Save form and exit'.

Thank you,

Kira

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

Hi Amelia,

Thanks for following up. I would like the value to be 'no' when skipped, so
that the value (1) appears in exports and reports on CommCareHQ.

Kira

··· On Tuesday, December 17, 2013 11:16:01 AM UTC-5, Amelia Sagoff wrote: > > Hi Kira, > > When you skip a question (because its display condition is not met), its > value will be empty text (which is represented by two quotation marks: ''). > I believe there are workarounds you can use, but to make sure I walk > through the best one, can you explain a bit more about why you want the > value to be no - e.g. is it so that "no" appears in exports or in reports > on CommCareHQ, or because you want the value to be considered as "no" when > it is used in display conditions for other questions? > > Thanks, > Amelia > > > > > > On Mon, Dec 16, 2013 at 12:59 PM, Kira Skolas <ksk...@gmail.com wrote: > >> Hello, >> >> Is it possible to have certain questions automatically be answered when >> skipped? For example, when I select Q1.2 as 'No', then questions 1.3-1.7 >> are skipped and not displayed. I would like for all these questions to be >> skipped, but also answered as 'No' (value =1). I believe I can do this with >> an IF statement, but unsure of where that IF statement should live. >> >> Also, when using case sharing, is it possible to move to the next form >> when you come to the end of a form, rather than going back to the home >> screen, selecting the client and new form. For example, when coming to the >> end of a form, there would be an option, 'Save Form and continue to next >> section' in addition to 'Save form and exit'. >> >> Thank you, >> >> Kira >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> > >

Hi Kira,

Thanks for that information. The easiest way to do this involves putting an
if statement in the calculate of a the "hidden value" question type, but it
will only work if there are not too many questions that need to default to
no. Can you let me know the order of magnitude of questions in your form
that are like this? E.g. a few, a dozen, tens, a hundred?

Thanks,
Amelia

··· On Tue, Dec 17, 2013 at 11:28 AM, Kira Skolas wrote:

Hi Amelia,

Thanks for following up. I would like the value to be 'no' when skipped,
so that the value (1) appears in exports and reports on CommCareHQ.

Kira

On Tuesday, December 17, 2013 11:16:01 AM UTC-5, Amelia Sagoff wrote:

Hi Kira,

When you skip a question (because its display condition is not met), its
value will be empty text (which is represented by two quotation marks: '').
I believe there are workarounds you can use, but to make sure I walk
through the best one, can you explain a bit more about why you want the
value to be no - e.g. is it so that "no" appears in exports or in reports
on CommCareHQ, or because you want the value to be considered as "no" when
it is used in display conditions for other questions?

Thanks,
Amelia

On Mon, Dec 16, 2013 at 12:59 PM, Kira Skolas ksk...@gmail.com wrote:

Hello,

Is it possible to have certain questions automatically be answered when
skipped? For example, when I select Q1.2 as 'No', then questions 1.3-1.7
are skipped and not displayed. I would like for all these questions to be
skipped, but also answered as 'No' (value =1). I believe I can do this with
an IF statement, but unsure of where that IF statement should live.

Also, when using case sharing, is it possible to move to the next form
when you come to the end of a form, rather than going back to the home
screen, selecting the client and new form. For example, when coming to the
end of a form, there would be an option, 'Save Form and continue to next
section' in addition to 'Save form and exit'.

Thank you,

Kira

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

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

Thanks Amelia. It would be a string of 1 to 10 questions that default to
'no'.

··· On Tuesday, December 17, 2013 11:32:26 AM UTC-5, Amelia Sagoff wrote: > > Hi Kira, > > Thanks for that information. The easiest way to do this involves putting > an if statement in the calculate of a the "hidden value" question type, but > it will only work if there are not too many questions that need to default > to no. Can you let me know the order of magnitude of questions in your form > that are like this? E.g. a few, a dozen, tens, a hundred? > > Thanks, > Amelia > > > On Tue, Dec 17, 2013 at 11:28 AM, Kira Skolas <ksk...@gmail.com wrote: > >> Hi Amelia, >> >> Thanks for following up. I would like the value to be 'no' when skipped, >> so that the value (1) appears in exports and reports on CommCareHQ. >> >> Kira >> >> >> On Tuesday, December 17, 2013 11:16:01 AM UTC-5, Amelia Sagoff wrote: >> >>> Hi Kira, >>> >>> When you skip a question (because its display condition is not met), its >>> value will be empty text (which is represented by two quotation marks: ''). >>> I believe there are workarounds you can use, but to make sure I walk >>> through the best one, can you explain a bit more about why you want the >>> value to be no - e.g. is it so that "no" appears in exports or in reports >>> on CommCareHQ, or because you want the value to be considered as "no" when >>> it is used in display conditions for other questions? >>> >>> Thanks, >>> Amelia >>> >>> >>> >>> >>> >>> On Mon, Dec 16, 2013 at 12:59 PM, Kira Skolas wrote: >>> >>>> Hello, >>>> >>>> Is it possible to have certain questions automatically be answered when >>>> skipped? For example, when I select Q1.2 as 'No', then questions 1.3-1.7 >>>> are skipped and not displayed. I would like for all these questions to be >>>> skipped, but also answered as 'No' (value =1). I believe I can do this with >>>> an IF statement, but unsure of where that IF statement should live. >>>> >>>> Also, when using case sharing, is it possible to move to the next form >>>> when you come to the end of a form, rather than going back to the home >>>> screen, selecting the client and new form. For example, when coming to the >>>> end of a form, there would be an option, 'Save Form and continue to next >>>> section' in addition to 'Save form and exit'. >>>> >>>> Thank you, >>>> >>>> Kira >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "commcare-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to commcare-user...@googlegroups.com. >>>> >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> > >

OK great! Here's the workaround I would suggest:

Let's use as an example a question with the id "question1"

  1. Create a hidden value, for example named "question1_value"
  2. In the calculate of question1_value, write: if(/data/question1 = '',
    'no', /data/question1)
  3. When looking at data in reports and exports, make sure you look at
    question1_value instead of question1. To make this more clear to users, you
    might want to name question1 something like "question1_intermediary" and
    not include it in custom exports.

Do this for each of the 10 questions.

I hope this helps - let me know if you have any questions

Thanks,
Amelia

··· On Tue, Dec 17, 2013 at 11:49 AM, Kira Skolas wrote:

Thanks Amelia. It would be a string of 1 to 10 questions that default to
'no'.

On Tuesday, December 17, 2013 11:32:26 AM UTC-5, Amelia Sagoff wrote:

Hi Kira,

Thanks for that information. The easiest way to do this involves putting
an if statement in the calculate of a the "hidden value" question type, but
it will only work if there are not too many questions that need to default
to no. Can you let me know the order of magnitude of questions in your form
that are like this? E.g. a few, a dozen, tens, a hundred?

Thanks,
Amelia

On Tue, Dec 17, 2013 at 11:28 AM, Kira Skolas ksk...@gmail.com wrote:

Hi Amelia,

Thanks for following up. I would like the value to be 'no' when skipped,
so that the value (1) appears in exports and reports on CommCareHQ.

Kira

On Tuesday, December 17, 2013 11:16:01 AM UTC-5, Amelia Sagoff wrote:

Hi Kira,

When you skip a question (because its display condition is not met),
its value will be empty text (which is represented by two quotation marks:
''). I believe there are workarounds you can use, but to make sure I walk
through the best one, can you explain a bit more about why you want the
value to be no - e.g. is it so that "no" appears in exports or in reports
on CommCareHQ, or because you want the value to be considered as "no" when
it is used in display conditions for other questions?

Thanks,
Amelia

On Mon, Dec 16, 2013 at 12:59 PM, Kira Skolas ksk...@gmail.com wrote:

Hello,

Is it possible to have certain questions automatically be answered
when skipped? For example, when I select Q1.2 as 'No', then questions
1.3-1.7 are skipped and not displayed. I would like for all these questions
to be skipped, but also answered as 'No' (value =1). I believe I can do
this with an IF statement, but unsure of where that IF statement should
live.

Also, when using case sharing, is it possible to move to the next form
when you come to the end of a form, rather than going back to the home
screen, selecting the client and new form. For example, when coming to the
end of a form, there would be an option, 'Save Form and continue to next
section' in addition to 'Save form and exit'.

Thank you,

Kira

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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

Hi Amelia,

Thanks for this. This is great, although I anticipate difficulty in
recreating the export when skips are executed. Is there a way to 'load' the
hidden value back into 'question 1' so that in exports and reports, the
question1 field will be populated with a value even if it is skipped?
Alternatively, I could build the logic in the excel report to read blanks
for question1 as '1'.

Also, in regards to my second question in the first email, is it possible
to move to the next form when you come to the end of a form, rather than
going back to the home screen, selecting the client and new form. For
example, when coming to the end of a form, there would be an option, 'Save
Form and continue to next section' in addition to 'Save form and exit'.

Thanks again for all your help!

··· On Tuesday, December 17, 2013 12:02:46 PM UTC-5, Amelia Sagoff wrote: > > OK great! Here's the workaround I would suggest: > > Let's use as an example a question with the id "question1" > > 1) Create a hidden value, for example named "question1_value" > 2) In the calculate of question1_value, write: if(/data/question1 = '', > 'no', /data/question1) > 3) When looking at data in reports and exports, make sure you look at > question1_value instead of question1. To make this more clear to users, you > might want to name question1 something like "question1_intermediary" and > not include it in custom exports. > > Do this for each of the 10 questions. > > I hope this helps - let me know if you have any questions > > Thanks, > Amelia > > > > > On Tue, Dec 17, 2013 at 11:49 AM, Kira Skolas <ksk...@gmail.com wrote: > >> Thanks Amelia. It would be a string of 1 to 10 questions that default to >> 'no'. >> >> >> On Tuesday, December 17, 2013 11:32:26 AM UTC-5, Amelia Sagoff wrote: >> >>> Hi Kira, >>> >>> Thanks for that information. The easiest way to do this involves putting >>> an if statement in the calculate of a the "hidden value" question type, but >>> it will only work if there are not too many questions that need to default >>> to no. Can you let me know the order of magnitude of questions in your form >>> that are like this? E.g. a few, a dozen, tens, a hundred? >>> >>> Thanks, >>> Amelia >>> >>> >>> On Tue, Dec 17, 2013 at 11:28 AM, Kira Skolas wrote: >>> >>>> Hi Amelia, >>>> >>>> Thanks for following up. I would like the value to be 'no' when >>>> skipped, so that the value (1) appears in exports and reports on >>>> CommCareHQ. >>>> >>>> Kira >>>> >>>> >>>> On Tuesday, December 17, 2013 11:16:01 AM UTC-5, Amelia Sagoff wrote: >>>> >>>>> Hi Kira, >>>>> >>>>> When you skip a question (because its display condition is not met), >>>>> its value will be empty text (which is represented by two quotation marks: >>>>> ''). I believe there are workarounds you can use, but to make sure I walk >>>>> through the best one, can you explain a bit more about why you want the >>>>> value to be no - e.g. is it so that "no" appears in exports or in reports >>>>> on CommCareHQ, or because you want the value to be considered as "no" when >>>>> it is used in display conditions for other questions? >>>>> >>>>> Thanks, >>>>> Amelia >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Mon, Dec 16, 2013 at 12:59 PM, Kira Skolas wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> Is it possible to have certain questions automatically be answered >>>>>> when skipped? For example, when I select Q1.2 as 'No', then questions >>>>>> 1.3-1.7 are skipped and not displayed. I would like for all these questions >>>>>> to be skipped, but also answered as 'No' (value =1). I believe I can do >>>>>> this with an IF statement, but unsure of where that IF statement should >>>>>> live. >>>>>> >>>>>> Also, when using case sharing, is it possible to move to the next >>>>>> form when you come to the end of a form, rather than going back to the home >>>>>> screen, selecting the client and new form. For example, when coming to the >>>>>> end of a form, there would be an option, 'Save Form and continue to next >>>>>> section' in addition to 'Save form and exit'. >>>>>> >>>>>> Thank you, >>>>>> >>>>>> Kira >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "commcare-users" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to commcare-user...@googlegroups.com. >>>>>> >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "commcare-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to commcare-user...@googlegroups.com. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> > >

Hi Kira,

question1_value will be 'no' if the question is skipped, and otherwise will
take the value of question1. So you can always just look at question1_value
instead of question1. However, building logic into the excel export to
automatically change question1 to 'no' if it has been skipped wlil work as
well! Questions that have been skipped are shown as "--" in exports.

Sorry for not answering your other question the first time! It is not
currnetly possible to move automatically to the next form rather than going
back to the home screen. However, the ability to automatically navigate to
locations in your app other than the home screen is something that is on
our roadmap.

Thanks,
Amelia

··· On Tue, Dec 17, 2013 at 12:15 PM, Kira Skolas wrote:

Hi Amelia,

Thanks for this. This is great, although I anticipate difficulty in
recreating the export when skips are executed. Is there a way to 'load' the
hidden value back into 'question 1' so that in exports and reports, the
question1 field will be populated with a value even if it is skipped?
Alternatively, I could build the logic in the excel report to read blanks
for question1 as '1'.

Also, in regards to my second question in the first email, is it possible
to move to the next form when you come to the end of a form, rather than
going back to the home screen, selecting the client and new form. For
example, when coming to the end of a form, there would be an option, 'Save
Form and continue to next section' in addition to 'Save form and exit'.

Thanks again for all your help!

On Tuesday, December 17, 2013 12:02:46 PM UTC-5, Amelia Sagoff wrote:

OK great! Here's the workaround I would suggest:

Let's use as an example a question with the id "question1"

  1. Create a hidden value, for example named "question1_value"
  2. In the calculate of question1_value, write: if(/data/question1 = '',
    'no', /data/question1)
  3. When looking at data in reports and exports, make sure you look at
    question1_value instead of question1. To make this more clear to users, you
    might want to name question1 something like "question1_intermediary" and
    not include it in custom exports.

Do this for each of the 10 questions.

I hope this helps - let me know if you have any questions

Thanks,
Amelia

On Tue, Dec 17, 2013 at 11:49 AM, Kira Skolas ksk...@gmail.com wrote:

Thanks Amelia. It would be a string of 1 to 10 questions that default to
'no'.

On Tuesday, December 17, 2013 11:32:26 AM UTC-5, Amelia Sagoff wrote:

Hi Kira,

Thanks for that information. The easiest way to do this involves
putting an if statement in the calculate of a the "hidden value" question
type, but it will only work if there are not too many questions that need
to default to no. Can you let me know the order of magnitude of questions
in your form that are like this? E.g. a few, a dozen, tens, a hundred?

Thanks,
Amelia

On Tue, Dec 17, 2013 at 11:28 AM, Kira Skolas ksk...@gmail.com wrote:

Hi Amelia,

Thanks for following up. I would like the value to be 'no' when
skipped, so that the value (1) appears in exports and reports on
CommCareHQ.

Kira

On Tuesday, December 17, 2013 11:16:01 AM UTC-5, Amelia Sagoff wrote:

Hi Kira,

When you skip a question (because its display condition is not met),
its value will be empty text (which is represented by two quotation marks:
''). I believe there are workarounds you can use, but to make sure I walk
through the best one, can you explain a bit more about why you want the
value to be no - e.g. is it so that "no" appears in exports or in reports
on CommCareHQ, or because you want the value to be considered as "no" when
it is used in display conditions for other questions?

Thanks,
Amelia

On Mon, Dec 16, 2013 at 12:59 PM, Kira Skolas ksk...@gmail.comwrote:

Hello,

Is it possible to have certain questions automatically be answered
when skipped? For example, when I select Q1.2 as 'No', then questions
1.3-1.7 are skipped and not displayed. I would like for all these questions
to be skipped, but also answered as 'No' (value =1). I believe I can do
this with an IF statement, but unsure of where that IF statement should
live.

Also, when using case sharing, is it possible to move to the next
form when you come to the end of a form, rather than going back to the home
screen, selecting the client and new form. For example, when coming to the
end of a form, there would be an option, 'Save Form and continue to next
section' in addition to 'Save form and exit'.

Thank you,

Kira

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to commcare-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google
Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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