Exit form after a question prompt

Hi There,

I was wondering if it is possible to exit and delete a form based on a
question that is answered in the form? For example, in the Wits CommCare
application, the clock out form asks students if they have completed a task
(this is a single select yes-or-no type of question) and if they say no I
want the app to exit and delete the form they so that they can return to
the module menu of the application and complete the task before they can
fill in this clock out form.

Kindly,

Ameera

Hi Ameera,

I’m not aware of a way to force exit of the form based on the answer to a
question, but you could add a label which prevents the user from going
forward. For example, you could create a label which is displayed if the
user answers “no” and set the validation condition to something impossible,
like 1=2. The user would not be able to submit the form and could be
prompted to exit without saving changes.

Jeremy

··· On Wed, Jan 13, 2016 at 5:31 AM, Ameera Hamid wrote:

Hi There,

I was wondering if it is possible to exit and delete a form based on a
question that is answered in the form? For example, in the Wits CommCare
application, the clock out form asks students if they have completed a task
(this is a single select yes-or-no type of question) and if they say no I
want the app to exit and delete the form they so that they can return to
the module menu of the application and complete the task before they can
fill in this clock out form.

Kindly,

Ameera


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/d/optout.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.

Depending on the form you can also wrap the majority of the form after that
question in a group with a display condition which disables all questions
after that one. The result will be that the user exits after that question,
and as long as any case updates are contained within the hidden group, they
won’t be acted on since those elements were hidden by the display condition.

-Clayton

··· On Wed, Jan 13, 2016 at 1:37 PM, Jeremy W. wrote:

Hi Ameera,

I’m not aware of a way to force exit of the form based on the answer to a
question, but you could add a label which prevents the user from going
forward. For example, you could create a label which is displayed if the
user answers “no” and set the validation condition to something impossible,
like 1=2. The user would not be able to submit the form and could be
prompted to exit without saving changes.

Jeremy

On Wed, Jan 13, 2016 at 5:31 AM, Ameera Hamid ameera.hamid91@gmail.com wrote:

Hi There,

I was wondering if it is possible to exit and delete a form based on a
question that is answered in the form? For example, in the Wits CommCare
application, the clock out form asks students if they have completed a task
(this is a single select yes-or-no type of question) and if they say no I
want the app to exit and delete the form they so that they can return to
the module menu of the application and complete the task before they can
fill in this clock out form.

Kindly,

Ameera


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/d/optout.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.


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/d/optout.

I will try this, thanks!

··· On Wednesday, 13 January 2016 20:42:17 UTC+2, Clayton Sims wrote: > > Depending on the form you can also wrap the majority of the form after > that question in a group with a display condition which disables all > questions after that one. The result will be that the user exits after that > question, and as long as any case updates are contained within the hidden > group, they won't be acted on since those elements were hidden by the > display condition. > > -Clayton > > On Wed, Jan 13, 2016 at 1:37 PM, Jeremy W. <jwac...@dimagi.com > wrote: > >> Hi Ameera, >> >> I'm not aware of a way to force exit of the form based on the answer to a >> question, but you could add a label which prevents the user from going >> forward. For example, you could create a label which is displayed if the >> user answers "no" and set the validation condition to something impossible, >> like 1=2. The user would not be able to submit the form and could be >> prompted to exit without saving changes. >> >> Jeremy >> >> On Wed, Jan 13, 2016 at 5:31 AM, Ameera Hamid <ameera....@gmail.com > wrote: >> >>> Hi There, >>> >>> I was wondering if it is possible to exit and delete a form based on a >>> question that is answered in the form? For example, in the Wits CommCare >>> application, the clock out form asks students if they have completed a task >>> (this is a single select yes-or-no type of question) and if they say no I >>> want the app to exit and delete the form they so that they can return to >>> the module menu of the application and complete the task before they can >>> fill in this clock out form. >>> >>> Kindly, >>> >>> Ameera >>> >>> -- >>> 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/d/optout. >>> >> >> >> >> -- >> Jeremy Wacksman >> Dimagi , Inc. >> >> -- >> 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/d/optout. >> > >