Monday, April 23, 2012

Re: cakephp automatically adding 3 drop down boxes for birthdate

On Mon, Apr 23, 2012 at 11:22, Mangesh Sathe
<reach.mangeshsathe@gmail.com> wrote:
> Hello all,
>
>            I am using <?php echo $this->Form->input('birthdate', array('id'
> => 'select2','label'=>false)); ?>  code  to  generate text input field for
> birth date.
> But cakephp automatically adding 3 drop down boxes for year,month & day.
>
> How can i remove dropdown boxes?

Set the type of input field that you want to use in the input tag.

$this->Form->input(('birthdate', array('id' => 'select2',
'label'=>false, 'type' => 'text'));

Mike.

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate