I hope you are doing well. I am currently facing an issue with hiding fields in ODK Collect, and I would appreciate your assistance. Here are the details:
Issue Description:
I have a form and I am trying to hide certain fields within a group using either appearance="hidden()" or nodisplay="true()". However, the fields are still visible in ODK Collect despite these settings.
Form Structure:
Attempts Made:
I have tried both appearance="hidden()" and nodisplay="true()", but the issue persists.
If anyone has encountered a similar issue or has insights into resolving this problem, I would greatly appreciate your guidance. Additionally, if there are alternative approaches to hiding fields conditionally, I would be open to exploring those options.
No, there no specific conditionality involved. They actually gets input/values from other fields using calculation attribute/Column. No user input is required so I want to keep it hidden to reduce questionnaire overall timing. here i am sharing a more detailed screenshot of actually scenario.
So, you can use a calculate type, see link (blue) above, please.
I add an example, how to hide other types, e.g. text, selects: Hide02.xlsx (18.4 KB).
See also documentation.
You need to avoid a label and add a calculation. A default or only a missing label will not work and will result in an error:
Also, an empty ${RefVar} as label doesn't work for hiding (neither pre-set or entered as "").