Changing the width of an <input> field

Dear Sirs et Madames,
There are occasions when the data to be input in the form is just 1 or
2 characters long, yet the input field spans the whole form. Is there
any way of specifying the size of an input field?

Thanks in advance,
Tumaini

There are occasions when the data to be input in the form is just 1 or
2 characters long, yet the input field spans the whole form. Is there
any way of specifying the size of an input field?

No - but you can add a constraint to the field using a bind if you want
to ensure that the string length stays below a certain number of
characters. I believe there should be examples for this elsewhere in
the mailing list or via links on the opendatakit.org website.

··· On 04/11/11 09:42 AM, Tumaini Kilimba wrote:

--
Matt Adams
Radical Dynamic
www.radicaldynamic.com

Correct; this level of control is not available. Code contributions welcome.

Mitch

··· On Mon, Oct 29, 2012 at 9:35 AM, Audrey wrote:

Hi all,

I recently came across this post and am facing the same problem. Is it
still not possible to adjust the size of an input field?

Thanks so much,
Audrey

On Friday, November 4, 2011 6:42:33 PM UTC+3, Tumaini Kilimba wrote:

Dear Sirs et Madames,

There are occasions when the data to be input in the form is just 1 or

2 characters long, yet the input field spans the whole form. Is there

any way of specifying the size of an input field?

Thanks in advance,

Tumaini

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Along that vein, you can also specify the space allocated for a string
within the datastore layer; by default, barcode, string and select1 fields
are limited to 255 characters and will be silently truncated upon
submission.

In a form with many questions, specifying a smaller value can significantly
improve the storage efficiency of your database layer; you can also
increase the space being allocated. See:
http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines#Datastore_String_Length

Mitch

··· On Fri, Nov 4, 2011 at 11:01 AM, Matt Adams wrote:

On 04/11/11 09:42 AM, Tumaini Kilimba wrote:

There are occasions when the data to be input in the form is just 1 or

2 characters long, yet the input field spans the whole form. Is there
any way of specifying the size of an input field?

No - but you can add a constraint to the field using a bind if you want to
ensure that the string length stays below a certain number of characters.
I believe there should be examples for this elsewhere in the mailing list
or via links on the opendatakit.org website.

--
Matt Adams
Radical Dynamic
www.radicaldynamic.com

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@**googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/**group/opendatakit?hl=enhttp://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer


University of Washington
mitchellsundt@gmail.com