Monday 29 September 2008 8:58:23 am
I have set a simple feedback form. When a form is submitted, I obtain two collections in the 'collected iformation' for one submission. How can I prevent that ? Here is my template code :
{include uri='design:content/collectedinfo_validation.tpl'}
{def $myparentnode = fetch(content,node,hash(node_id,$node.parent_node_id))}
<form method="post" action={"content/action"|ezurl} id="myform">
<div>
<p>
<label>{$node.data_map.nom.contentclass_attribute.name} *</label>
{attribute_view_gui attribute=$node.data_map.nom}
<label>{$node.data_map.societe.contentclass_attribute.name} *</label>
{attribute_view_gui attribute=$node.data_map.societe}
</p>
</div>
<input name="TopLevelNode" value="{$node.node_id}" type="hidden">
<input name="ContentNodeID" value="{$node.node_id}" type="hidden">
<input name="ContentObjectID" value="{$node.object.id}" type="hidden">
<p id="btn"><input name="ActionCollectInformation" value="Envoyer" type="submit"></p> </form> Thanks. Fred
|