Allow counter appearance for decimal question with step

What high-level problem are you trying to solve?
Allowing enumerators to quickly and accurately count decimals with pre-known parameters. In my case, I'm counting bricks and there can only be a full brick or half brick. The documentation for the Counter appearance says it can only be used with integer questions.

Any ideas on how ODK could help you solve it?
Based on current designs for the range and integer widgets, I would basically want to make a hybrid. What makes most sense to me is allowing the decimal question to use the counter appearance and giving more details in the parameter column like: start=0;end=10;step=0.5

It wouldn't NEED the start and end values, but I suppose you could include them. If parameter just had step=0.5, that would mean that a user taps the plus and it adds 0.5 instead of 1 as it currently does in the integer question.

Upload any helpful links, sketches, and videos.

Since most real world counts are discrete, this is a special case and I would suggest you improvise by having two counter widgets on the same screen. The first ounter used for counting full bricks (you can even include icon/image of full brick alongside the counter. The second counter to be used for counting half a brick(include image of half a brick as well). Then use calculate question to divide the cumulative count of the second counter by 2 then add it to the first counter question. I hope you may find this a workaround useful.

1 Like