This seems like such a basic question but it often gets me. What is
the logic that determines whether the form helper marks a field as
required or not? For example, I have a varchar field that can be null
and accepts up to 100 characters. I have set a maxLength validation
rule (that also has required => false, just for good measure). In my
mind this is not a required field, but the form helper thinks it is.
All I want to do is make sure the max limit is not exceeded. Removing
the validation rule removes the required flag from the form. Where can
I find the logic and how can I adjust it at 'run time'?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to