Select to view content in your preferred language

Survey123 Report Select One Codes

576
4
Jump to solution
01-11-2024 02:37 PM
Dawn_Bondy
Emerging Contributor

In Survey123 Summary reports, is there a way to report codes rather than labels from "Select One" questions? For example, from the domain list of values below, "L1" rather than "Level 1 - ...". The full label is unwieldy for reporting, but necessary for the field crews.

Domain.png

ReportPreview.PNG

Thanks!

0 Kudos
1 Solution

Accepted Solutions
abureaux
MVP Frequent Contributor

In that case, you will need to do the calculate in S123:

abureaux_0-1705073465903.png

Just reference the calculate in the Feature Report instead of the select_one.

abureaux_1-1705073495565.png

 

View solution in original post

0 Kudos
4 Replies
abureaux
MVP Frequent Contributor

To intentionally display the value of a choice rather than the label, use the getValue expression:

${select_one | getValue:""}

As per here.

0 Kudos
Dawn_Bondy
Emerging Contributor

It seems that doesn't work for summary sections. Sorry, I should have specified.

0 Kudos
abureaux
MVP Frequent Contributor

In that case, you will need to do the calculate in S123:

abureaux_0-1705073465903.png

Just reference the calculate in the Feature Report instead of the select_one.

abureaux_1-1705073495565.png

 

0 Kudos
Dawn_Bondy
Emerging Contributor

That was precisely the solution I was trying to avoid. Thanks for confirming it can't be done in the report template itself.

0 Kudos