Unlimited form length needed to allow for observation notes

Hi Guys

I'm using ODK Collect and am designing a form which has a notes question. This field needs to be the maximum character length allowed as people will need to write long notes on what they are observing.

I tried to set this up by adding a 'bind:attribute' column and a row message (row 48) of 'odk:length=16000 but it seems to stick to only 230.

Here is my form, row 48 is the notes question

Ovenmonitoringformv3.xlsx (75.7 KB)

Thanks!!

Fran

Hi @Frances,

The column name must be bind::odk:length and the value in the cell set to 16000

https://docs.opendatakit.org/aggregate-field-length/

Mathieu

Hi! Thanks. I tried to upload my form to the server and no luck - please could you check my form?

Ovenmonitoringformv4.xml (20.1 KB) Ovenmonitoringformv4.xlsx (75.6 KB)

Looking at your xml file, it seems that you're missing the odk xml namespace.

xmlns:odk="http://www.opendatakit.org/xforms"

Attached is what I get when I tried to convert your form.
Ovenmonitoringformv4.xml (17.9 KB)

1 Like

Good morning,

I just transfor your xlsx file with https://opendatakit.org/xlsform/ and the xml I get differs from yours...
Yours doesn't contain odk xforms namespace as @nribeka said (xmlns:odk="http://www.opendatakit.org/xforms") and has some other differences...
So I am not sure you tried the good one.

Hi - sorry, I am not sure I understand. What do I need to change in the form please?

Many thanks :slight_smile:

I get this error when I try to upload form to server:

Error: Problem with JavaRosa Parsing Form: org.opendatakit.aggregate.exception.ODKIncompleteSubmissionData: org.javarosa.xform.parse.XFormParseException: Unhandled Exception while Parsing XForm

Maybe you have a version problem, I use aggregate 2.0.0...
I just transform your xlsx with https://opendatakit.org/xlsform/ , uploaded it to my aggregate server, download the form on my phone and fill the form.
As you can see I get a column with 16000 characters and the whole text I input

Here is the xml produced by xslform_online :
Ovenmonitoringformv4.xml (16.1 KB)

2 Likes

ok thanks very much!