Open joshuaberetta opened 3 years ago
I think this may be another case of something that would be fixed by having get_fields_for_versions()
in formpack return a list of fields to the front end, which is then presented in selection controls like the export filter.
Description
Community report: https://community.kobotoolbox.org/t/i-ve-got-3-projects-that-are-not-downloading-mix-matrix-ranking-and-some-even-text-questions/23682/11 Zulip discussion: https://chat.kobotoolbox.org/#narrow/stream/4-KoBo-Dev/topic/Custom.20exports/near/66892
KoBo-specific question types don't export submission data correctly when filtering fields in "Advanced options".
Steps to Reproduce
survey
choices
settings
If we look at the asset
content.survey
JSON, we see why this is the case:However, the
kobomatrix
group structure is transformed behind the scenes resulting in this survey structure:survey
Therefore to correctly include all the matrix fields, the export data should look like this instead:
Expected behavior
Export includes all selected data.
Actual behavior
Data is missing.