Hi all,
I'm really stuck on this one... I have a chunk, containing a FormIt form that works fine when I use it in a template. But when I use a TV with an output filter to call the same chunk, things go wrong.
The TV call with output filter:
[[*contact_form_toggle:is=`on`:then=`[[$contactForm]]`]]
The contactForm chunk:
[[!FormIt?
&hooks=`spam,email,redirect,FormItAutoResponder`
&emailTpl=`cf_contactMailTpl`
&emailSubject=`Ingevuld contactformulier`
&emailTo=`[email protected]`
&redirectTo=`52`
&fiarTpl=`cf_autoResponderTpl`
&fiarSubject=`Uw bericht aan xxxxx`
&fiarToField=`cf_email`
&fiarFrom=`[email protected]`
&validate=`cf_naam:required,cf_email:email:required,cf_bericht:required:stripTags`
]]
<div class="ddfmwrap">
<form class="ddfm" method="post" action="[[~[[*id]]]]" enctype="multipart/form-data">
<input type="hidden" name="cf_workemail" value="" />
<div class="section">
<h2>Uw gegevens</h2>
[[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
<p class="fieldwrap"><label for="cf_naam"><span class="required">*</span> Naam</label>[[!+fi.error.cf_naam:notempty=`[[!+fi.error.cf_naam]]`]]<input class="fmtext" type="text" name="cf_naam" value="[[!+fi.cf_naam]]" /></p>
<p class="fieldwrap"><label for="cf_telefoon">Telefoonnummer</label><input class="fmtext" type="text" name="cf_telefoon" value="[[!+fi.cf_telefoon]]" /></p>
<p class="fieldwrap"><label for="cf_email"><span class="required">*</span> E-mail adres</label>[[!+fi.error.cf_email:notempty=`[[!+fi.error.cf_email]]`]]<input class="fmtext" type="text" name="cf_email" value="[[!+fi.cf_email]]" /></p>
<p class="fieldwrap"><label for="cf_bericht"><span class="required">*</span> Uw vraag of opmerking</label>[[!+fi.error.cf_bericht:notempty=`[[!+fi.error.cf_bericht]]`]]<textarea class="fmtextarea" name="cf_bericht" cols="20" rows="6">[[!+fi.cf_bericht]]</textarea></p>
</div>
<div class="submit"><input type="submit" name="cf_submit" value="Verzenden" /></div>
</form>
</div>
And now comes the fun part: I've narrowed it down to the "@" symbols. If you leave them out of the FormIt call, everything works again, put 'em back in and the form won't show...
Does anyone have a clue to what's going on here?? Is this a bug, or am overlooking something here?
Greetings,
Hugo