I am puzzled by a new error.
I render a form with selects. No big deal there. The options to select are
pulled from the database and the one selected is correct if user selected it
previously.
But for some reason now the HTML:
None
Less than 6 Months
6 Months - 1 Year
1 - 5 Years
5 -
gt; So I have an auto-complete field where you can type in the name of a
>>> state, and once it fills in the field, I want it to show another select
>>> input which is populated by all the cities in that state. Does anyone have
>>> a link to a tutorial or example of
2 July 2012 16:39:05 UTC+3, Michael wrote:
>>
>> So I have an auto-complete field where you can type in the name of a
>> state, and once it fills in the field, I want it to show another select
>> input which is populated by all the cities in that state. Does anyone have
&g
and once it fills in the field, I want it to show another select
> input which is populated by all the cities in that state. Does anyone have
> a link to a tutorial or example of this? It will save me having to hack it
> together. Thanks
>
>
> ~Michael
>
--
Our newest si
So I have an auto-complete field where you can type in the name of a state,
and once it fills in the field, I want it to show another select input
which is populated by all the cities in that state. Does anyone have a link
to a tutorial or example of this? It will save me having to hack it
Your'e right [CODE] echo $form->input('User.role_id',array('options'=>
$roles) ); [/CODE] works
thanks !
On Mar 24, 5:46 pm, cricket wrote:
> On Mar 24, 4:29 pm, hvannia wrote:
>
> > I have a controller where i get the user roles and set them so they
> > can be displayed on the view as a selec
On Mar 24, 4:29 pm, hvannia wrote:
> I have a controller where i get the user roles and set them so they
> can be displayed on the view as a select list within a form.
> This part is OK, but when i Save the form all the fields but this
> field ( role ) is not saved, all other fields including the
I have a controller where i get the user roles and set them so they
can be displayed on the view as a select list within a form.
This part is OK, but when i Save the form all the fields but this
field ( role ) is not saved, all other fields including the rAdiO
button
selection are saved,
do i need
This removes the empty option, and sets low as default.
echo $form->select('level', array
('0'=>'Low','1'=>'Medium','2'=>'High'), 0, false, false);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
On Fri, Mar 13, 2009 at 10:12 PM, Samuel DeVore wrote:
>
> echo $form->select('level',
> array('0'=>'Low','1'=>'Medium','2'=>'High'), array('selected'=>'0'));
Or, in this particular case, just
echo $form->select('level', array('Low','Medium','High'));
Best regards.
--
MARCELO DE F. ANDRADE (a
Yes..i see the false setting you pointed out for the blank field.
Thanks
Dave
-Original Message-
From: Samuel DeVore [mailto:sdev...@gmail.com]
Sent: March-13-09 11:00 PM
To: cake-php@googlegroups.com
Subject: Re: Select input
On Fri, Mar 13, 2009 at 6:23 PM, Dave Maharaj
On Fri, Mar 13, 2009 at 6:23 PM, Dave Maharaj :: WidePixels.com
wrote:
>
>
>
> echo $form->select('level', array('0'=>'Low','1'=>'Medium','2'=>'High'),
> array('selected'=>'Low'));
>
> Renders this
>
>
> Low
> Medium
> High
>
Is it safe to say that you sent this before reading my response?
--
ls.com [mailto:d...@widepixels.com]
Sent: March-13-09 10:46 PM
To: cake-php@googlegroups.com
Subject: RE: Select input
Thanks, it’s a bit closer.
That did get rid of the 1 and 2 that was showing in the drop down. Only
thing is there is still a blank field at the top.
Dave
-Ori
-13-09 10:43 PM
> To: cake-php@googlegroups.com
> Subject: Re: Select input
>
>
> echo $form->select('level',
> array('0'=>'Low','1'=>'Medium','2'=>'High'), array('selected'=>'0'));
>
>
: Re: Select input
echo $form->select('level',
array('0'=>'Low','1'=>'Medium','2'=>'High'), array('selected'=>'0'));
try that
On Fri, Mar 13, 2009 at 5:55 PM, Dave Maharaj :: WidePixe
echo $form->select('level',
array('0'=>'Low','1'=>'Medium','2'=>'High'), array('selected'=>'0'));
try that
On Fri, Mar 13, 2009 at 5:55 PM, Dave Maharaj :: WidePixels.com
wrote:
> I been looking at the API for this and still cant get it right.
> API echo $form->select( $fieldName, $options = arr
I been looking at the API for this and still cant get it right.
API echo $form->select( $fieldName, $options = array ( ), $selected = NULL,
$attributes = array ( ), $showEmpty = '' )
Can someone tell me whats wrong with this?
echo $form->select('level', array(array('0'=>'Low'), array('1'=>'Med
rote:
> > > > Hi,
> >
> > > > I have this table relation :
> >
> > > > Post HABTM Tag
> > > > Tag HABTM Post
> >
> > > > Since maybe I'll have more than 400 tags, SELECT TAG for tags is not
> a
> > >
> > Post HABTM Tag
> > > Tag HABTM Post
>
> > > Since maybe I'll have more than 400 tags, SELECT TAG for tags is not a
> > good
> > > choice for me.
> > > All I want to do is as simple as save and edit post. But I want to
> > display
> >
> choice for me.
> > All I want to do is as simple as save and edit post. But I want to
> display
> > tag input as text input (not as select input).
> >
> > Tags input will be looks like Wordpress tags input.
> >
> > View Example :
> >
>
ags is not a
> good
> > choice for me.
> > All I want to do is as simple as save and edit post. But I want to
> display
> > tag input as text input (not as select input).
> >
> > Tags input will be looks like Wordpress tags input.
> >
> > V
HABTM Tag
> Tag HABTM Post
>
> Since maybe I'll have more than 400 tags, SELECT TAG for tags is not a good
> choice for me.
> All I want to do is as simple as save and edit post. But I want to display
> tag input as text input (not as select input).
>
> Tags input will be l
Hi,
I have this table relation :
Post HABTM Tag
Tag HABTM Post
Since maybe I'll have more than 400 tags, SELECT TAG for tags is not a good
choice for me.
All I want to do is as simple as save and edit post. But I want to display
tag input as text input (not as select input).
Tags input wi
23 matches
Mail list logo