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: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]