AnsweredAssumed Answered

Limiting the characters for a Phone Number

Question asked by hsturm on Apr 5, 2019
Latest reply on Apr 8, 2019 by NDierks@BoxElder

I have two fields for phone numbers in my survey.  When I add constraints into the xls form, the survey in Connect follows those constraints, but when I publish the survey and open it up in a web browser, those constraints seem to no longer apply.  I initially had the field as a double, I changed the precision and scale in the feature class, and I also tried changing the data type to text. 

 

I have tried the following constraints: regex(.,'[2-9]\d{2}-\d{3}-\d{4}'), regex(.,'^\d{10}$') with input Mask (D99) 999-9999

Outcomes