You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an boolean export parameter show_choice_labels that will accept true or false. This option will allow the labels of choices to be included in the submission data being exported. There are two possibilities:
For each row where there is a choice was selected the user will see the label of the choice instead of the choice itself.
We add an extra column, 'field_name:label' that will include the label of the choice in the 'field_name'.
Given the XLSForm:
| survey |
| | type | name | label |
| | select one fruits | fruit | Fruit |
| | | | |
| choices | list name | name | label |
| | fruits | 1 | Mango |
| | fruits | 2 | Orange |
| | fruits | 3 | Apple |
1. For each row where there is a choice was selected the user will see the label of the choice instead of the choice itself. 2. We add an extra column, 'field_name:label' that will include the label of the choice in the 'field_name'.
Both options are practical, but my only concern with option two is the number of columns, especially for already wide forms. I would probably opt for option 1 for this reason.
Proposal
Add an boolean export parameter
show_choice_labels
that will accepttrue
orfalse
. This option will allow the labels of choices to be included in the submission data being exported. There are two possibilities:Given the XLSForm:
The export currently will look like:
With the export parameter
show_choice_labes=true
then we have the same export as:Or with the option to have an extra labels field column, with the export parameter
show_choice_labels=true
then we have the same export as:For select multiple questions:
The export currently will look like:
With the export parameter
show_choice_labes=true
then we have the same export as:Or with the option to have an extra labels field column, with the export parameter
show_choice_labels=true
then we have the same export as:For select multiple questions where the parameter
value_select_multiples
istrue
andsplit_select_multiples
is also true, the export will be as:With label as separate column:
With
include_labels=true
:With
include_labels=true
and label as a separate column:Decision required
Should we replace the select field or add an extra
field:label
column to show the labels?Ref
Aha! Link: https://ona.aha.io/features/PROD-342
The text was updated successfully, but these errors were encountered: