Restrict String Data type to receive Alphabets only

Hi,

Is there any way to specify appearance of String field to show Alphabet keyboard only.

For example a field to capture Respondent_Name will be a string field. I want to specify that no one should be able to enter 123 in that. Only alphabets A-Z or a-z should be entered. Can we use some attribute like we have appearance="numbers" for numbers.

Thanks

By default only the default keyboard shows. You can use regex on a
constraint to only allow letters to be saved on swipe. Something like
regex(., '[A-Za-z]') would work.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Fri, May 16, 2014 at 5:49 AM, plannerqadeer@gmail.com wrote:

Hi,

Is there any way to specify appearance of String field to show Alphabet keyboard only.

For example a field to capture Respondent_Name will be a string field. I want to specify that no one should be able to enter 123 in that. Only alphabets A-Z or a-z should be entered. Can we use some attribute like we have appearance="numbers" for numbers.

Thanks

--

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


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like

A post was split to a new topic: SurveyCTO error