Thanks for the reply Joshua, is it possible to use this with the scaffolding 
feature? I am prototyping at present.

John

----- Original Message ----- 
From: "Joshua Benner" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, June 04, 2007 8:48 PM
Subject: Re: Drop Down Lists in 1.2


>
> Using FormHelper::select()
>
> $form->select('field_name', $optionsArray, null, array(), 'text for
> blank entry')
>
> http://api.cakephp.org/1.2/class_form_helper.html#5171e675468c9665db0653c165b6c89c
>
> John Messingham wrote:
>> Hi,
>>
>> I am looking at version 1.2 and have a quick question.
>>
>> I have created two tables and associated them via the model with no
>> problems. The one thing that I have come up against is the fact that
>> in version 1.1 the drop down list had a blank entry at the top of the
>> list and version 1.2 does not. 1.2 forces you to select a value.
>>
>> I need to be able to allow the user to either select an entry or leave
>> the field blank. Is there a way of doing this?
>>
>> I hope this makes sense.
>>
>> Many Thanks
>> John Messingham
>> http://www.jmds.co.uk
>>
>>
>> >
>>
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to