Checkbox/enum as info-collector

Author Message

Bjørn Kaarstein

Tuesday 22 July 2003 8:09:21 am

I've created a couple of mailforms earlier without problems, but this time I'm in need of some checkboxes in my mailform.

I was mighty surprised to find out this isn't supported by EZp, but after searching the forums, at least I found out how to create the checkboxes.

here: http://ez.no/developer/ez_publish_3/forum/developer/radio_buttons_within_forms

{let test=$node.data_map.cb}

{section name=Radio loop=array('value 1','Value 2')}
<input type="checkbox" name="ContentObjectAttribute_ezstring_data_text_{$test.id}" value="{$:item}">{$:item}</input>
{/section}
{/let}

My identifier for the enum field is cb, but this {let} doesn't have any function whatsoever. The section creates the checkboxes and all, but I can't get any information sent from them.

Anyone has an idea of how to use checkboxes in a mailform?

Regards Bjørn

Bjørn Kaarstein

Wednesday 23 July 2003 12:53:07 am

Well, this was solved in a rather ugly manner, but here we go..

I wrote an override for the node who was supposed to contain the mailform, and used an <iframe> to display an asp form from a w2k server... This works, but of course it would be preferred to have all functionality within EZ...

Regards Bjørn

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.