Character limit error

467
3
02-14-2018 09:29 AM
KevinRogers
New Contributor

I have a text field that I have limited to 255 characters and for some reason when the survey is filled out (browser only, no error using the app) it lets users input over 255 character but throws an error when they try to submit the survey. It says "failed to submit" and then if you click on more details it just say "undefined". So users are left not knowing what the issue or how to fix it.

 

Taking the survey in the app works fine. It stops you from typing at 255 and doesn't allow you to paste anything over 255.

 

Any fix for this?

Tags (1)
0 Kudos
3 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Kevin,

Currently the best way to enforce the limit would be to have a constraint of

string-length(.) <= 255

to enforce the check

KevinRogers
New Contributor

Thanks for your response. I added the constraint and at least the field and problem is highlighted.

0 Kudos
EricBenoit
New Contributor II

Is there any way to extend the character limit on the text field?

0 Kudos