Hello ODK community,
I’ve been working with ODK forms and recently started using the randomize=true parameter to randomize the order of choices in my multiple/single-choice questions. Everything was working fine yesterday, but today, I’m encountering an issue where I get the following validation warning:
"Selection choice label text and image uri are both missing for:"
This error appears for all the choices where I’ve applied randomize=true. I have double-checked the choices sheet, and all labels are properly filled in, and I’m using the correct format for randomize=true.
Has anyone else faced this issue recently? Could there have been any updates or changes in ODK that might be causing this problem?
I would really appreciate any guidance or suggestions to resolve this issue.
Thanks in advance!
Is the error message appearing in Collect when you open the form, when opening the web form, or when uploading a new draft in Central?
What versions of Collect and Central are you using?
Can you share an XLSForm so that others can try to reproduce and explore the issue?
1 Like
Testing.xlsx (14.9 KB)
show this error when i check through ( https://getodk.org/xlsform/) ODK Validate Warnings:
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 1.
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 2.
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 3.
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 4.
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 5.
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 6.
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 7.
Selection choice label text and image uri are both missing for: /data/ADS_1_grp/ADS_1 choice: 8
@danbjoseph
Are you planning on translating the form? For single-language forms, using the language identifiers in the column headers can cause some confusion (that is, the ::English (en)
) if it is not included in all the right places.
If your form is going to be using images, you will need to test on a Central instance. There is no way to upload the media files to ODK Validate.
It's only a warning, not an error. Can you upload to Central and fill out the form as expected?
@ali.raza16922597 thanks for the report and example XLSForm.
If you use a production release of Central, or the latest tagged release of pyxform (currently 3.0.1) to convert the form, it should not have this problem.
The online converter at getodk.org/xlsform uses the latest pyxform code in development on the master branch. There seems to be a regression in that code, and I have opened a PR to fix it here: https://github.com/XLSForm/pyxform/pull/764
2 Likes