maybe a bug on forms Form::MAX_LENGTH rule
- leonardoap
- Member | 17
ok i will try to explain as much as posible becouse i am a spanish language mother speaker.
On forms rules i add a Form::MAX_LENGTH rule it works fine on client side (browser) validating with java script, but as you know you can edit the client code with chrome tools. i did with them eliminating the validation and adding more characters to max length html tag, when i press the submit, the server side does not find any error on the fields jumping the Form::MAX_LENGTH rule.
this on 2.2.7
here the code
- leonardoap
- Member | 17
hi jan, im using the forms outside from presenters. All is working good, except Form::MAX_LENGTH server side validation witch does not validate. mmmm i will share you the code, but ONLY the MAX_LENGTH does NOT WORK on server side
BaseForm.php
signUpForm.php
just in case here you have the serviceFActory and FormsContainer
serviceFactory
formsContainer
and finally here the presenter calling
regards
Last edited by leonardoap (2015-02-05 04:43)
- David Grudl
- Nette Core | 8254
It is ok, MAX_LENGTH silently truncates string, without error message.
- leonardoap
- Member | 17
David Grudl wrote:
It is ok, MAX_LENGTH silently truncates string, without error message.
I didnt do that test. but i I assumed it would have to show an error like the other rules.