Welcome Guest, Not a member yet? Register   Sign In
Extended form validation and blank fields
#9

[eluser]urrmurrmur[/eluser]
I just read your reply in the bug reports forum, which states that it is impossible to call validation rules unless the field is defined as required.

Fair enough, but then my question becomes: I want several different validation rules, each testing if a field is blank, but each with a different error message. I could of course set the error message in each individual controller method, but that seems like overkill. So what I was trying to do was to create an extension to the form validation class with three or four self-defined methodes to test if a field is blank.

But as I understand it now, that's impossible? Any other suggestions on a clean way to do this?


Messages In This Thread
Extended form validation and blank fields - by El Forum - 06-04-2010, 05:23 AM
Extended form validation and blank fields - by El Forum - 06-04-2010, 07:05 AM
Extended form validation and blank fields - by El Forum - 06-04-2010, 08:45 AM
Extended form validation and blank fields - by El Forum - 06-09-2010, 02:52 AM
Extended form validation and blank fields - by El Forum - 06-09-2010, 03:07 AM
Extended form validation and blank fields - by El Forum - 06-14-2010, 07:44 AM
Extended form validation and blank fields - by El Forum - 06-14-2010, 08:49 AM
Extended form validation and blank fields - by El Forum - 06-17-2010, 05:51 AM
Extended form validation and blank fields - by El Forum - 06-17-2010, 06:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB