Select Input Issue

2013-11-17 Thread Advantage+
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 -

Re: Autocomplete field to populate a select input example?

2012-11-01 Thread franscelstain
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

Re: Autocomplete field to populate a select input example?

2012-07-03 Thread Michael Gaiser
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

Re: Autocomplete field to populate a select input example?

2012-07-02 Thread Борислав Събев
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

Autocomplete field to populate a select input example?

2012-07-02 Thread Michael Gaiser
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

Re: Saving form does not save item corresponding to select input type

2010-03-25 Thread hvannia
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

Re: Saving form does not save item corresponding to select input type

2010-03-24 Thread cricket
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

Saving form does not save item corresponding to select input type

2010-03-24 Thread hvannia
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

Re: Select input

2009-03-13 Thread Miles J
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

Re: Select input

2009-03-13 Thread Marcelo Andrade
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

RE: Select input

2009-03-13 Thread Dave Maharaj :: WidePixels.com
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

Re: Select input

2009-03-13 Thread Samuel DeVore
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? --

RE: Select input

2009-03-13 Thread Dave Maharaj :: WidePixels.com
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

Re: Select input

2009-03-13 Thread Samuel DeVore
-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

2009-03-13 Thread Dave Maharaj :: WidePixels.com
: 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

Re: Select input

2009-03-13 Thread Samuel DeVore
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

Select input

2009-03-13 Thread Dave Maharaj :: WidePixels.com
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

Re: Editing HABTM using Text input not Select input

2008-11-11 Thread Okto Silaban
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 > > >

Re: Editing HABTM using Text input not Select input

2008-11-11 Thread teknoid
> > 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 > >

Re: Editing HABTM using Text input not Select input

2008-11-10 Thread Okto Silaban
> 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 : > > >

Re: Editing HABTM using Text input not Select input

2008-11-10 Thread Okto Silaban
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

Re: Editing HABTM using Text input not Select input

2008-11-10 Thread teknoid
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

Editing HABTM using Text input not Select input

2008-11-10 Thread Okto Silaban
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