mohan-nishit / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Selected value of select1 is not shown when form re-entered if it has spaces #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start new form with attached form (Spaces in underlying value for select 1)
2. Complete and Save 
3. Continue saved form

What is the expected output? What do you see instead?
I expected to see the value I selected for the select1 question, however this 
was not shown. Note the value is in the saved instance.

What version of the product are you using? On what operating system?
ODK Collect v1.1.5

Please provide any additional information below.

The problem appears to be when spaces are included in the underlying value.  I 
know that spaces can't be used for checkbox questions however in every other 
way the select one with spaces works.  The value is saved and submitted to the 
server correctly.  The only problem occurs if you try and view the completed 
form on the phone. Hence I'm raising this as a bug.

With respect to the selectMultiple questions it would be great if the option 
separator in the results file was changed from a space to a ":" or a "|".

Original issue reported on code.google.com by neilpen...@gmail.com on 13 May 2011 at 3:49

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 13 May 2011 at 6:57

GoogleCodeExporter commented 9 years ago
It's actually not legal to have spaces in the <value> fields of select or 
select1 items.  Javarosa should be throwing a parse error, and I've started a 
discussion about that with the JR community.  If you use their form validator 
it does give you a warning that it's not legal.

Original comment by carlhart...@gmail.com on 17 Jun 2011 at 7:46