Hi all, Another question regarding large single selects. A user is selecting a locality and there will be several hundred of them. Is there a way to this easy to use that is already built into CommCare? My idea was to have a preliminary Single Select that lets you choose the first letter of the locality. For example:
Locality Group
A, B, C, D, E
F, G, H, I, J
K, L, M, N, O
P, Q, R, S, T
U, V, W, X, Y, Z
Then the next question shows a filtered list of localities in that group. Is that a good path? If yes, I cannot figure out how to do this in the new form builder unless each group is stored in a separate data field field, which isn't a good model.
Recommendations?
Jon
Jon,
My recommendation would be something like 3 single selects in a row (A-H,
I-Q, R-Z) where the next one is only visible if you didn't make a choice in
the previous one, then using the letter to make the appropriate sub group
relevant. Unfortunately, predicate support won't be released until probably
December, so there isn't yet a particularly clever way to implement this
workflow outside of that. If this project has a long timeline it may be
worth waiting for predicates, so you can use one itemset with a filter
expression rather than having to build a for each letter (although
that also won't make it into the form designer for a while, it will require
writing custom XForms makup).
-Clayton
ยทยทยท
On Wed, Nov 16, 2011 at 2:40 PM, Jonathan Payne wrote:
Hi all, Another question regarding large single selects. A user is
selecting a locality and there will be several hundred of them. Is there a
way to this easy to use that is already built into CommCare? My idea was to
have a preliminary Single Select that lets you choose the first letter of
the locality. For example:
Locality Grouphttps://www.commcarehq.org/a/pih-cholera/apps/view/3adc6d3b773f9de9ea08da00ac284a7f/modules-0/forms-0/source/#
- A, B, C, D, Ehttps://www.commcarehq.org/a/pih-cholera/apps/view/3adc6d3b773f9de9ea08da00ac284a7f/modules-0/forms-0/source/#
- F, G, H, I, Jhttps://www.commcarehq.org/a/pih-cholera/apps/view/3adc6d3b773f9de9ea08da00ac284a7f/modules-0/forms-0/source/#
- K, L, M, N, Ohttps://www.commcarehq.org/a/pih-cholera/apps/view/3adc6d3b773f9de9ea08da00ac284a7f/modules-0/forms-0/source/#
- P, Q, R, S, Thttps://www.commcarehq.org/a/pih-cholera/apps/view/3adc6d3b773f9de9ea08da00ac284a7f/modules-0/forms-0/source/#
- U, V, W, X, Y, Zhttps://www.commcarehq.org/a/pih-cholera/apps/view/3adc6d3b773f9de9ea08da00ac284a7f/modules-0/forms-0/source/#
Then the next question shows a filtered list of localities in that group.
Is that a good path? If yes, I cannot figure out how to do this in the new
form builder unless each group is stored in a separate data field field,
which isn't a good model.
Recommendations?
Jon