--
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, Latika,
I think we discussed some ideas for this workflow a month or so back, but it is confusing and I thought I would describe the idea here and see if anyone else has a better way to do this:
The workflow is:
1- Register a household. In that form there is a question, how many children are there in the household? (household_children_quantity). This form is completed one time and in the form configuration, household_children_quantity is used to update the case.
2- There is a follow up form to collect weight and height of all family members including children. The idea is that rather than creating lots of subcases from the registration form, there will be one form that will show relevant groups of questions on each child until all the data has been submitted. For example, the user goes the first time to a house with 7 children and is able to find 5 of them. She collects data from those 5 and submits it. The next month she comes and finds one more child. She opens the follow up form and only the relevant childrens'
Concept for the Follow up Form:
There would be ~6 questions about each child's anthroprometry all entered into a group. Assuming a maximum of 15 children in one household, these questions would be copied 15 times such that there are not 15 groups (child1_anthro, child2_anthro, etc.)
Simple-to-build but less-user-friendly solution:
On the form configuration page, save everything to the case and then load all of the values into the case. This will have the effect of when you fill out the form and submit it, next time you open it the values from the last visit will already be populated. The user can just skip forward through them.
Complicated-to-build but more-user-friendly solution:
Each of these groups would have a display condition that references the data node household_children_quantity. This data node would be loaded on the form configuration with the value from the registration form. So, for example, the group child2_anthro would have the display condition: household_children_quantity >= 2
To keep things simpler, you could have a question at the end of each
"group" of questions:
Is this child's data complete? Yes or No
If yes this would set the value of that question (child1_data_complete) to yes (1):
child1_data_complete = 1
Then you create a data node called child1_data_complete_prev
On the form settings you would select child1_data_complete_prev from "loads data" and you would type child1_data_complete into the field. It would look like this:
Loads data from the case:
child1_data_complete_prev loads data from child1_data_complete
This means that the data node child1_data_complete_prev will contain the value from the previous time the form was filled out
Then for the group of questions related to child1 you set the display condition to:
child1_data_complete_prev != 1
You would do the same thing for each of the children groups.
NOTE: You will need to be very careful with the updates the case/loads the case settings.
I know that is pretty confusing so if anyone else has another suggestion or wants to try to explain this more clearly, please feel free!
Jeremy
Hi All,
--
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.
Hi Amelia,
Thanks for this, and I have got the solution you describe working.
Now I am trying to hide "barcode_question" once it has been scanned.
Best
Tim
You received this message because you are subscribed to a topic in the Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commcare-user...@googlegroups.com.
Hi Amelia,
There maybe 50+ barcoded items.
Currently, that means every time you scan it goes back to the top of the list.
I could make it so the barcodes were in reverse order - thus you come you come to the latest?
Having said that, I would still like to be able to do this if possible.
Best
Tim