|
Hi all,
Using zf-1.11 I have a form defined in a config.ini file and have added an example radio button whose definition follows. elements.color.type = "radio" elements.color.options.label = "Select a Color" elements.color.options.multiOptions.red = "Red" elements.color.options.multiOptions.green = "Green" elements.color.options.multiOptions.yellow = "Yellow" Let's say I want "Red" to be the default. What do I have to do to add checked='checked' for that button? TIA, Mike Wright -- List: [hidden email] Info: http://framework.zend.com/archives Unsubscribe: [hidden email] |
|
On 06/29/2012 12:06 PM, Mike Wright wrote:
> Hi all, > > Using zf-1.11 > > I have a form defined in a config.ini file and have added an example > radio button whose definition follows. > > elements.color.type = "radio" > elements.color.options.label = "Select a Color" > elements.color.options.multiOptions.red = "Red" > elements.color.options.multiOptions.green = "Green" > elements.color.options.multiOptions.yellow = "Yellow" > > Let's say I want "Red" to be the default. What do I have to do to add > checked='checked' for that button? Finally found this solution in a post from MWO'P, Feb 18, 2008, 4:31am Re: MultiCheckbox on config files - Zend_Form substituting gives 'elements.color.options.value.red = "red"' Not particularly intuitive but elegant and does produce the 'checked="checked"' markup correctly. Took about 4 hours to find the answer; nonetheless, sorry for the noise and thanks for the tachyon response. -- List: [hidden email] Info: http://framework.zend.com/archives Unsubscribe: [hidden email] |
|
Hi Mike,
The list isn't as active as it used to be when ZF1 first started. I am not sure why, but it seems to me that #zftalk on freenode is the place to go when looking for immediate help from community members. You'll find it on zftalk.com - Bart Op 29-06-12 22:51, Mike Wright schreef: On 06/29/2012 12:06 PM, Mike Wright wrote: --
|
| Powered by Nabble | Edit this page |
