I have developed an survey app using odk , Now the issue is I have created one repeat-group question , this group have a question where i am asking for multiple response in it. Now, I want when the next time repeat comes previously taken option could not be chosen again.
example:
Q which service do use want to use (a, b, c, d, e)
Now if , a is selected next time a should not be selected again..)
It would be very helpful if anybody provide me support for this.
@LN Thanks for sharing the XLS.But is it possible to apply the same restriction to multiple choice selection? If one item is selected then a user cannot select the same item in the next iteration.
Dear @LN,
The sample form is great!, Now,I'm trying not to duplicate 1 or 2 option from a household (e.g. there could be a wife and husband only). Is it possible?
Hi, great post !
I have the opposite problem
In a repeat group, how can i select the same defaults value as the previous "same" question.
I want to create a form for describe the lithology.
I have a begin_repeat with depth and the lithology in a select_multiple.
When I add a new repeat group, I want select by default the same lithology than the previous group.
I think I'm almost there : XLSFORM_litho.xlsx (17.0 KB)
By the way, there's a problem with submitting data (in some instances) for this example xlsform:
1.) Select 'a', add another row
2.) Select 'b', add another row
3.) Select 'b' - you get an error message as expected. Select 'c' instead, the error disappears
4.) Hit submit - you aren't able to because you get the error message on the second selection.
So there probably needs some tweaking to this validation - anyone who has worked it out yet?
If in this example I wanted to create a question, how many ids do I want to add, would it have to be a begin repeat called more_ids, how could I do it? join(' ', more_ids/${rpt}[position != current()/../position]/id)