Saturday, January 31, 2009

How to disable datetime field?

Hi,
I need to disable a datetime field and enable it when user clicked on
a radiobuutton, there is no problem in enabling because every single
field has an id but I don't know how can I disable datetime fields?!!
this is how I tried to do it:

$form->dateTime('Customer.switch','MY','NONE',time(),array('minYear'
=> date('Y'),'disabled'=>'disabled'),false);

it doesn't work! any idea?!!!
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: