Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Answers from select one questions are not read properly if they start/end with whitespaces and come from an external file #5692

Closed
grzesiek2010 opened this issue Jul 24, 2023 · 5 comments
Assignees
Milestone

Comments

@grzesiek2010
Copy link
Member

grzesiek2010 commented Jul 24, 2023

Problem description

Answers from select one questions are not read properly if they start/end with whitespaces and come from an external file
I prepared a test form with three questions where:

  • the first one has choices that come from the XML file itself
  • the second one has choices from an external csv file (select_one_from_file)
  • the fired one has choices from an external csv file (using the search function)

Steps to reproduce the problem

  1. Open the attached form: SelectWIthWhitespaces.zip
  2. Answer each of the three questions
  3. Save the form as a draft
  4. Edit the form

Expected behavior

All answers should be read correctly and displayed in the app.

Other information

The first question with choices from the XML file works well
For the question with choices from an external csv file (select_one_from_file) the answer is gone after editing a form (not visible in the hierarchy view and not visible in the question itself
For the question with choices from an external csv file (using the search function), the answer is visible initially in the hierarchy but not in the question itself

@lognaturel
Copy link
Member

Merged in JavaRosa so it should be available in Collect after a rebuild!

@dbemke
Copy link

dbemke commented May 21, 2024

Tested with Success!

Verified on a device with Android 10

Verified Cases:

  • selects in drafts in the form mentioned above
  • regression checks in selects
  • don't keep activities enabled/disabled

@WKobus
Copy link

WKobus commented May 21, 2024

Tested with Success!

Verified on a device with Android 14

@srujner
Copy link

srujner commented May 21, 2024

Tested with Success!

Verified on a device with Android 13

@grzesiek2010
Copy link
Member Author

Closed in getodk/javarosa#752

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: done
Development

No branches or pull requests

6 participants