Dear Will,

as usually you're right;) With  

<input type="${content.type}" id="${content.controlName}_${label_index}"
name="${content.controlName}" value="${data[1]!data[0]!?html}"
${checked} />
<label for="${content.controlName}_${label_index}">${data[0]}</label>

it works for me..fixed at m-m-form-1.1.

-- 
Best regards,

Zdenek Skodik
Magnolia International Ltd.

Magnolia®  - Simple Open-Source Content Management


On Fri, 2009-12-18 at 16:13 +0100, Will Scheidegger wrote:
> Oh... and while we're at it, doesn't the formSelection.ftl produce non-valid 
> HTML for checkboxes?
> 
> <label id="${content.controlName}_label" 
> for="${content.controlName}_${label_index}">
>       <input id="${content.controlName}_${label_index}" 
> name="${content.controlName}" type="${content.type}" 
> value="${data[1]!data[0]!?html}" ${checked} />
>       ${data[0]}
>  </label>
> 
> If you have multiple select boxes, you'll end up with multiple <label /> 
> elements with the same ID if I'm not mistaken.
> 
> -will
> 
> On 18.12.2009, at 14:47, Will Scheidegger wrote:
> 
> > 
> > Dear Magnolians
> > 
> > Probably a very simple question for those familiar with the subject: How 
> > can I get the form values of a checkbox paragraph. E.g. when I add a 
> > checkbox paragraph (i.e. a "Selection" paragraph), name the field 
> > "interests" and add three possible values like this
> > 
> > Skiing:ski
> > Surfing:surf
> > Soccer:soccer
> > 
> > How can I get the selected values printed in my mail form? I tried
> > 
> > ${interests}
> > 
> > as with a regular edit field, but honestly did not really expect this to 
> > work - and it did not. So now I simply tried to check if there was anything 
> > like that in the model:
> > 
> > <#if interests??>
> >  There is a "interests" value
> > <#else>
> >  There is NO "interests" value
> > </#if>
> > 
> > And I do get NO as an answer. What is the right way to do this?
> > 
> > Thanks!
> > -will
> > 
> > ----------------------------------------------------------------
> > For list details see
> > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > To unsubscribe, E-mail to: <[email protected]>
> > ----------------------------------------------------------------
> > 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to