Hello, Sheldon,
It sounds like you want to "load" the previous value of a question into the
questions in your "edit" form. For reference, the basic concept for an edit
form is described here:
https://help.commcarehq.org/display/commcarepublic/General+Workflow+Suggestions
You will need to make sure that you save the answer to the case the first
time it is asked (i.e. in the registration form), which it sounds like you
are already doing. Then, in the "edit" form, you will load the case
property into the question. The concept of loading case properties into a
form is described here:
https://help.commcarehq.org/display/commcarepublic/Advanced+Case+Management+Tutorial+Part+3+-+Loading+Data+from+the+Case.
The
only difference from what you are currently doing is that you will be
loading the case data directly into the actual questions, not just the
hidden values. This will "pre-populate" the question with the answer from
the case data. All of this configuration is done on the case management tab
of the form settings, rather than within the form itself.
Hope that helps!
Jeremy
ยทยทยท
On Sun, Sep 15, 2013 at 8:35 AM, Sheldon De Villiers wrote:Hi Simon,
Thanks for the reply.
I tried your solution, but it does not exactly worked the way I would have
liked. What I would like to do is display the "value" inside the text box
so the user wouldn't be able to re-enter/re-register the "value" while
editing the data.I attached an image that might help get the message across easier.
Thanks
On Sunday, 15 September 2013 12:38:00 UTC+2, Sheldon De Villiers wrote:
Hi All,
I currently have a "register" form that collects data about a patient,
and an "edit" form that would allow the user to edit that case data.
The "edit" form contains some hidden values that holds the case data of a
previous registered patient as well as text questions that will allow the
user to update that data.What I would like to know can you pre-load that hidden value (case data)
inside a text question input bar?I have tried setting the Default Data Value to "/data/prev_name"
underneath the Advanced options in form builder, but nothing displays when
i run the application. When I set the Default Data Value to a normal random
string, it perfectly displays when the applications runs.Does anyone know if this is possible or are there any alternatives to
editing data from a form?Thanks
--
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.
--
Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.