how to pose restriction on the character field entry.

1026
2
03-11-2019 02:41 PM
GeorgeSuresh
New Contributor II

I would like to restrict the input into my text field as follows:

   - exactly 6 characters, with each of these characters to be only numbers (0-9)

(I can do the same if I change the field to 'integer', except that the integer field will NOT take leading zeros as part of the 6-digit number - for example, 012345 is not a 6-digit number)

0 Kudos
2 Replies
by Anonymous User
Not applicable

Hi George,

Have you tried using an input mask, you can find more information here: Esri custom columns—Survey123 for ArcGIS | ArcGIS 

Also some other others in GeoNet have posted about using input masks and leading zeros: https://community.esri.com/message/831863-re-integer-field-is-truncated-when-the-survey-is-saved-the...  and Integer Field in Survey123 does not allow more than 9 digits  and https://community.esri.com/thread/217821-why-are-integers-now-limited-to-9-digits?commentID=784563#c... and Remove commas from Integer field type. There are lots of other posts and even workaround for input mask and leading zeros if you want to have a more in depth search.

Phil.

0 Kudos
GeorgeSuresh
New Contributor II

Thanks, Phil.

I'll check it out.

-- Suresh

0 Kudos