On Tue, Jan 11, 2011 at 1:25 PM, zzella <ellar...@gmail.com> wrote: > Hi, > > I have a model where a field is required on the Add (create) page but > can be empty on the Modify (update) page. > > My model specifies the field should be not-empty on create only, but > the "required" css class (red asterisk) still gets added on the modify > page. How do I make this a non-required field on the modify page?
I'm not sure if Cake normally would not add "required" in this situation (never looked into it) but you could always undo the CSS rule in your stylesheet: #IdOfForm .required { ... } Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en