Closed florianm closed 2 years ago
This is an issue for build2xlsform. Numeric values must be quoted in XML IIRC, so Build does it right. Edit: included in #19
Likely place to start: https://github.com/getodk/build2xlsform/blob/master/src/convert.ls#L223
A numeric field with a slider will let a user type in the numeric min, max, and step width: Note the values are numeric.
In the exported XForm, this becomes a
<range ref="/data/group1/slider" start="0" end="8" step="1">
. Note the values are quoted strings. The XForm however uploads and works fine.In the exported XLSForm, this becomes a
parameter
with valuestart="0" end="8" step="1"
. Note the values are quoted strings - this is in contrast to the XLSForm spec showing numeric values for start, end, step. build2xlsform probably did nothing wrong(er) here. The XLSForm raises an error in ODK Central:Manually changing the XLSForm parameter to
start=0 end=8 step=1
fixes the ODK Central error.How much of an issue is this for Build users? Question for user analytics: How many users go from Build to XLSForm (are we logging this?) and trip over sliders (are we logging form import warnings)?