Forums / Setup & design / Including a form in a form

Including a form in a form

Author Message

Pascal France

Sunday 24 January 2010 11:39:40 am

Hi,

I have done a form which includes another form. Something like that:

 <form method="post" action={"content/action"|ezurl}>
<input 1>
<input 2>
{include uri='design:form/form_2.tpl'}
<input 3>
<input 4>
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/base")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</form>

The included form_2.tpl only adds some news input fields.

With this code, only input 1 to 4 are collected and sent by mail.

Is there a way to send the form_2.tpl input data ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish