I think you should create a custom element which inherit from Text/Textarea and do add minlength and maxlength properties with validation on js. See how to create custom element here https://github.com/episerver/EPiServer.Forms.Samples
Hi there, thanks for getting back to me.
I know this is possible if I customise controls but this seems like a fundamental thing that should be supported in the default implementation. I'm sure there are lots of people who whould find, in particular, the maxlength property useful. Nothing fancy, just a straight HTML attribute with possibly the ability to specify an error message.
Yes, I will post a feature request so we can consider to support in some next version.
Is it possible to surface the minlength and maxlength properties for Text and Textarea controls in EPiServer Forms? This seems like an easy thing to do and should be better than trying to restrict these values using RegEx.