# Referencing case property in subsequent question

**URL:** <https://forum.dimagi.com/t/referencing-case-property-in-subsequent-question/2729>\
**Category:** Users\
**Created:** [May 12, 2016, 8:15pm UTC](https://forum.dimagi.com/t/referencing-case-property-in-subsequent-question/2729 "2016-05-12T20:15:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elizabeth\_Ragan](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/e/0ea827/32.png) [@Elizabeth\_Ragan](https://forum.dimagi.com/u/Elizabeth_Ragan)\
**Post date:** [May 12, 2016, 8:15pm UTC](https://forum.dimagi.com/t/referencing-case-property-in-subsequent-question/2729/1 "2016-05-12T20:15:28Z")

</div>

Hi,

I'm interested in referencing a response from a previous question in a  
later question, in this case, the name of a case in a question in a  
subsequent module/form. So, for instance, a question would read 'did Lizzy  
take her medication today?' rather than 'did she take her medication  
today?'.

Thanks in advance.  
L

---

<div class="post-metadata">

**Author:** ![Nynke\_Brunner](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/n/838e76/32.png) [@Nynke\_Brunner](https://forum.dimagi.com/u/Nynke_Brunner)\
**Post date:** [May 13, 2016, 9:25am UTC](https://forum.dimagi.com/t/referencing-case-property-in-subsequent-question/2729/2 "2016-05-13T09:25:48Z")

</div>

Hi Elizabeth,

Please have a look at Displaying an Output  
[https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4:+Displaying+an+Output](https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4:+Displaying+an+Output)  
page.  
Let me know in case you need further help.

Best,  
Nynke

> **···**
>
> On Thu, May 12, 2016 at 8:15 PM, Elizabeth Ragan wrote:
> 
> > Hi,
> > 
> > I'm interested in referencing a response from a previous question in a  
> > later question, in this case, the name of a case in a question in a  
> > subsequent module/form. So, for instance, a question would read 'did Lizzy  
> > take her medication today?' rather than 'did she take her medication  
> > today?'.
> > 
> > Thanks in advance.  
> > L
> > 
> > --  
> > 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](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Senior Field Manager | Gestionnaire sur terrain  
> Dimagi West Africa | Dimagi Afrique de l'Ouest  
> Mob Sénégal: +221765228700  
> Skype: nynke.brunner
> 
> > **[Transforming Social Impact: Data Collection Software & Digital Health...](https://www.dimagi.com)**
> >
> > Enabling global NGOs with cutting-edge data collection software & digital health solutions. Discover how Dimagi powers impactful frontline work.

---

<div class="post-metadata">

**Author:** ![Elizabeth\_Ragan](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/e/0ea827/32.png) [@Elizabeth\_Ragan](https://forum.dimagi.com/u/Elizabeth_Ragan)\
**Post date:** [May 13, 2016, 3:58pm UTC](https://forum.dimagi.com/t/referencing-case-property-in-subsequent-question/2729/3 "2016-05-13T15:58:35Z")

</div>

Hi Nynke, thank you - The issue is that the Question for the patient's name  
is in the Case Registration module, and I want to reference it within a  
Follow-up module without having to ask for the patient's name again. Is  
there a way to modify the output value so that it pulls from another form?

> **···**
>
> On Friday, May 13, 2016 at 5:26:10 AM UTC-4, Nynke Brunner wrote: \> \> Hi Elizabeth, \> \> Please have a look at Displaying an Output \> page. \> Let me know in case you need further help. \> \> Best, \> Nynke \> \> On Thu, May 12, 2016 at 8:15 PM, Elizabeth Ragan \<ejr...@gmail.com \> wrote: \> \>\> Hi, \>\> \>\> I'm interested in referencing a response from a previous question in a \>\> later question, in this case, the name of a case in a question in a \>\> subsequent module/form. So, for instance, a question would read 'did Lizzy \>\> take her medication today?' rather than 'did she take her medication \>\> today?'. \>\> \>\> Thanks in advance. \>\> L \>\> \>\> -- \>\> 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. \>\> \> \> \> \> -- \> Senior Field Manager | Gestionnaire sur terrain \> Dimagi West Africa | Dimagi Afrique de l'Ouest \> Mob Sénégal: +221765228700 \> Skype: nynke.brunner \> http://www.dimagi.com \>

---

<div class="post-metadata">

**Author:** ![Jeremy\_W](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/j/96bed5/32.png) [@Jeremy\_W](https://forum.dimagi.com/u/Jeremy_W)\
**Post date:** [May 13, 2016, 6:21pm UTC](https://forum.dimagi.com/t/referencing-case-property-in-subsequent-question/2729/4 "2016-05-13T18:21:32Z")

</div>

Hi Elizabeth,

You can use case management to reference data from a prior form. For  
example, you could save the question asking for the patient's name to the  
case in the registration form.  
Then in the follow-up form you would create a hidden value for the name and  
load it from the case. Then you can reference the hidden value in the  
follow-up form to display the name.

For more information and examples please see the Case Management Tutorials:  
[https://confluence.dimagi.com/display/commcarepublic/Basic+Case+Management+Tutorial](https://confluence.dimagi.com/display/commcarepublic/Basic+Case+Management+Tutorial)

Thanks,

Jeremy

> **···**
>
> On Fri, May 13, 2016 at 11:58 AM, Elizabeth Ragan wrote:
> 
> > Hi Nynke, thank you - The issue is that the Question for the patient's  
> > name is in the Case Registration module, and I want to reference it within  
> > a Follow-up module without having to ask for the patient's name again. Is  
> > there a way to modify the output value so that it pulls from another form?
> > 
> > On Friday, May 13, 2016 at 5:26:10 AM UTC-4, Nynke Brunner wrote:
> > 
> > > Hi Elizabeth,
> > > 
> > > Please have a look at Displaying an Output  
> > > [https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4:+Displaying+an+Output](https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4:+Displaying+an+Output) page.  
> > > Let me know in case you need further help.
> > > 
> > > Best,  
> > > Nynke
> > > 
> > > On Thu, May 12, 2016 at 8:15 PM, Elizabeth Ragan [ejr...@gmail.com](mailto:ejr...@gmail.com) wrote:
> > > 
> > > > Hi,
> > > > 
> > > > I'm interested in referencing a response from a previous question in a  
> > > > later question, in this case, the name of a case in a question in a  
> > > > subsequent module/form. So, for instance, a question would read 'did Lizzy  
> > > > take her medication today?' rather than 'did she take her medication  
> > > > today?'.
> > > > 
> > > > Thanks in advance.  
> > > > L
> > > > 
> > > > --  
> > > > 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](mailto:commcare-user...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > Senior Field Manager | Gestionnaire sur terrain  
> > > Dimagi West Africa | Dimagi Afrique de l'Ouest  
> > > Mob Sénégal: +221765228700  
> > > Skype: nynke.brunner  
> > > [http://www.dimagi.com](http://www.dimagi.com)
> > 
> > --  
> > 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](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Jeremy Wacksman  
> Dimagi [http://www.dimagi.com](http://www.dimagi.com), Inc.

---

<div class="post-metadata">

**Author:** ![Elizabeth\_Ragan](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/e/0ea827/32.png) [@Elizabeth\_Ragan](https://forum.dimagi.com/u/Elizabeth_Ragan)\
**Post date:** [May 13, 2016, 7:09pm UTC](https://forum.dimagi.com/t/referencing-case-property-in-subsequent-question/2729/5 "2016-05-13T19:09:34Z")

</div>

Perfect - this is what I needed.  
Thanks!

> **···**
>
> On Friday, May 13, 2016 at 2:21:53 PM UTC-4, Jeremy Wacksman wrote: \> \> Hi Elizabeth, \> \> You can use case management to reference data from a prior form. For \> example, you could save the question asking for the patient's name to the \> case in the registration form. \> Then in the follow-up form you would create a hidden value for the name \> and load it from the case. Then you can reference the hidden value in the \> follow-up form to display the name. \> \> For more information and examples please see the Case Management \> Tutorials: \> https://confluence.dimagi.com/display/commcarepublic/Basic+Case+Management+Tutorial \> \> Thanks, \> \> Jeremy \> \> On Fri, May 13, 2016 at 11:58 AM, Elizabeth Ragan \<ejr...@gmail.com \> wrote: \> \>\> Hi Nynke, thank you - The issue is that the Question for the patient's \>\> name is in the Case Registration module, and I want to reference it within \>\> a Follow-up module without having to ask for the patient's name again. Is \>\> there a way to modify the output value so that it pulls from another form? \>\> \>\> \>\> \>\> On Friday, May 13, 2016 at 5:26:10 AM UTC-4, Nynke Brunner wrote: \>\>\> \>\>\> Hi Elizabeth, \>\>\> \>\>\> Please have a look at Displaying an Output \>\>\> page. \>\>\> Let me know in case you need further help. \>\>\> \>\>\> Best, \>\>\> Nynke \>\>\> \>\>\> On Thu, May 12, 2016 at 8:15 PM, Elizabeth Ragan wrote: \>\>\> \>\>\>\> Hi, \>\>\>\> \>\>\>\> I'm interested in referencing a response from a previous question in a \>\>\>\> later question, in this case, the name of a case in a question in a \>\>\>\> subsequent module/form. So, for instance, a question would read 'did Lizzy \>\>\>\> take her medication today?' rather than 'did she take her medication \>\>\>\> today?'. \>\>\>\> \>\>\>\> Thanks in advance. \>\>\>\> L \>\>\>\> \>\>\>\> -- \>\>\>\> 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. \>\>\>\> \>\>\> \>\>\> \>\>\> \>\>\> -- \>\>\> Senior Field Manager | Gestionnaire sur terrain \>\>\> Dimagi West Africa | Dimagi Afrique de l'Ouest \>\>\> Mob Sénégal: +221765228700 \>\>\> Skype: nynke.brunner \>\>\> http://www.dimagi.com \>\>\> \>\> -- \>\> 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. \> \>
