thanks but that doesn't solve the problem
[[*layout_type:eq=`contact`:then=`true`:else=`false`]]
works and gives correct output, so the condition works. when i use the chunk without condition it works aswell.
here is the code of the chunk, but i get the same result when i take the example code from rtfm.
[[!FormIt? &hooks=`email,redirect` &emailSubject=`Kontakt` &emailTpl=`Kontakt_Mail` &emailTo=`[email protected]` &redirectTo=`9` &validate=`Anrede:required, Name:required, E-Mail:email:required, Ihre_Nachricht:text:required:stripTags`]]
<form role="form" class="form-horizontal" id="myform" action="[[~[[*id]]? &scheme=`full`]]#myform" method="post" enctype="multipart/form-data">
<input type="hidden" name="nospam:blank" />[[+fi.validation_error_message:isnot=``:then=`<div class="alert alert-danger">[[%degoya.formErrorMsg? &language=`[[++cultureKey]]` &namespace=`degoya`]]</div><br /><br />`]]
<div class="form-group [[+fi.error.Anrede:isnot=``:then=`error`]]">
<label for="Anrede">[[%degoya.formTitle? &language=`[[++cultureKey]]` &namespace=`degoya`]]*</label>
<select class="form-control" id="Anrede" name="Anrede">
<option value="">[[%degoya.formPleaseSelect? &language=`[[++cultureKey]]` &namespace=`degoya`]]</option>
<option value="[[%degoya.formTitleOptionFemale? &language=`[[++cultureKey]]` &namespace=`degoya`]]">[[%degoya.formTitleOptionFemale? &language=`[[++cultureKey]]` &namespace=`degoya`]]</option>
<option value="[[%degoya.formTitleOptionMale? &language=`[[++cultureKey]]` &namespace=`degoya`]]">[[%degoya.formTitleOptionMale? &language=`[[++cultureKey]]` &namespace=`degoya`]]</option>
</select>
</div>
<div class="form-group [[+fi.error.Name:isnot=``:then=`error`]]" >
<label for="Name">[[%degoya.formName? &language=`[[++cultureKey]]` &namespace=`degoya`]]* </label>
<input class="form-control" id="Name" type="text" name="Name" value="[[+fi.Name]]" />
</div>
<div class="form-group">
<label for="Telefon">[[%degoya.formPhone? &language=`[[++cultureKey]]` &namespace=`degoya`]]</label>
<input class="form-control" id="Telefon" type="text" name="Telefon" value="[[+fi.Telefon]]" />
</div>
<div class="form-group [[+fi.error.E-Mail:isnot=``:then=`error`]]">
<label for="E-Mail">[[%degoya.formMail? &language=`[[++cultureKey]]` &namespace=`degoya`]]*</label>
<input class="form-control" id="E-Mail" type="text" name="E-Mail" value="[[+fi.E-Mail]]" />
</div>
<div class="form-group [[+fi.error.Ihre_Nachricht:isnot=``:then=`error`]]">
<label for="Ihre_Nachricht">[[%degoya.formYourMessage? &language=`[[++cultureKey]]` &namespace=`degoya`]]*</label>
<textarea class="form-control" id="Ihre_Nachricht" name="Ihre_Nachricht" rows="10" cols="50">[[+fi.Ihre_Nachricht]]</textarea><br /><br /><p>
<div class="alert alert-info">[[%degoya.formInfoRequired? &language=`[[++cultureKey]]` &namespace=`degoya`]]</div>
<br /> <button class="btn btn-custom pull-right" type="submit">[[%degoya.formBtnSend? &language=`[[++cultureKey]]` &namespace=`degoya`]] <i class="icon-envelope"></i></button>
</div>
</form>
Including other chunks with conditions work aswell, the problem is only existent with formit