In Collect, when you answer a question that launches an external selector (such as the barcode reader, 3rd party Android intent, date picker, etc.), the raw value is displayed in whatever format was returned by the external selector immediately below the button that launched the selector.
In a few instances, we have found a use case for hiding the default answer, if the value needs to be formatted with a custom calculation first. Instead, we would like to show our own formatted value in a note question immediately below the "Launch," "Get Barcode," and "Select date" buttons.
- What do others think of this issue?
- If it seems generally useful, on what question types would it make sense to support such an appearance?
Thanks in advance for your feedback.
Hi again. It turns out this feature may be quite immediately useful for us. Does anyone happen to know of a workaround (however hacky/creative!) that might accomplish this behavior?
I think a
no-answer appearance that just shows nothing below the button makes sense for questions like
barcode. This could then be used in a
field-list with a
note question (using a calculation) to display a formatted version of the data rather than needing to add anything to
barcode to enable custom formatting.
We've added and merged a PR with the new appearance: https://github.com/getodk/collect/pull/5870#issuecomment-1856552453.
We ended up going with
hidden-answer instead of
no-answer as it felt clearer.
Tested and this works for me, thanks so much!