I’m developing a Stand Alone Entry Form that has a lot of numeric inputs - and most of the submissions will be made from an iPhone, rather than through a regular browser.
I’ve been reading up on how to default the form input to the numeric keyboard, generally by adding “zip” or “phone” to the name of the input field like this:
<input type="text" name="somefield_zip" value="" />
That works really well. I’m hardcoding the form input fields in my SAEF like this:
<input type="text" name="field_id_12" value="" />
I’m assuming if I add phone or zip to that, it won’t add to the correct field in the DB:
<input type="text" name="field_id_12_zip" value="" />
I’m not sure how to get around this. My main idea is to do the following:
<input type="text" name="somefield_zip" value="" />
<input type="hidden" name='field_id_12' value="" />
I’d enter a number into the first field which will default to the numeric keys because of the ‘_zip”, and use some JavaScript to populate the hidden field with the value of the first field upon form submission.
I don’t have to default to the numeric keys, but it makes form entry on this form much much faster - I have about six numeric fields in a row on this particular form.
Any thoughts on this appreciated…thanks!
