on 01-05-2006 11:59 AM
Hey
I want to set a maximum length to my input field. I have created a simpletype and set the max length to 20. So on i have created a context and set the datatype to the simple type i created and there so binded the input field. When i run the application, i can type in as much characters i want in the field with no restrections... someone got any clue of what i might have done wrong?
Hi Kristoffer,
Your observation is correct.Recently there was one webblog or article over inputfield.
If i remember correctly Max length what you define is only used for visible length.
You have to write your won code for Max length control.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you use a normal InputField element, the max length setting in the simple type should work (at least it does in sp11 for us). It will not work with the TextEdit element because it is rendered using a textview not an input tag. If you can, check the html that is rendered for the page. If the max length is working properly, it will add a maxlength property to the html input tag.
-Cindy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.