<li><label for="email">E-mail*:</label>[[+fi.error.email]]<input [[+fi.error.email:isnot=``:then=`class="invalid"`]] type="text" id="email" name="email" value="[[!+fi.email]]" /></li>
[[!today:lte=`[[*subscriptionDate]]`:then=`
<div class="grid_12">
<h2>Inschrijven</h2>
[[*content]]
</div>
[[!FormIt? &hooks=`...` &validate=`...` ...]]
[[$subscriptionForm]]
`]]This question has been answered by BobRay. See the first response.
I believe that when you are using single quotes in a chunk call which is also included single quotes you have to replace the inner single quotes into symbol ^
So in your example it would be:
[...]
[[!today:lte=`[[*subscriptionDate]]`:then=`
<div class="grid_12">
<h2>Inschrijven</h2>
[[*content]]
</div>
[[!FormIt? &hooks=`...` &validate=`...` ...]]
[[$subscriptionForm]]
`]]<form action="[[~[[*id]]]]" method="post">
<div class="grid_6">
<ul class="nomargin">
<li><label for="voornaam">Voornaam*:</label>[[+fi.error.voornaam]]<input [[+fi.error.voornaam:isnot=``:then=`class="invalid"`]] type="text" id="voornaam" name="voornaam" value="[[!+fi.voornaam]]"/></li>
<li><label for="tussenvoegsel">Tussenvoegsel:</label>[[+fi.error.tussenvoegsel]]<input [[+fi.error.tussenvoegsel:isnot=``:then=`class="invalid"`]] type="text" id="tussenvoegsel" name="tussenvoegsel" value="[[!+fi.tussenvoegsel]]" /></li>
<li><label for="achternaam">Achternaam*:</label>[[+fi.error.achternaam]]<input [[+fi.error.achternaam:isnot=``:then=`class="invalid"`]] type="text" id="achternaam" name="achternaam" value="[[!+fi.achternaam]]" /></li>
<li><label for="email">E-mail*:</label>[[+fi.error.email]]<input [[+fi.error.email:isnot=``:then=`class="invalid"`]] type="text" id="email" name="email" value="[[!+fi.email]]" /></li>
<li><label for="telefoon">Telefoon:</label>[[+fi.error.telefoon]]<input [[+fi.error.telefoon:isnot=``:then=`class="invalid"`]] type="text" id="telefoon" name="telefoon" value="[[!+fi.telefoon]]" /></li>
</ul>
</div>
<div class="grid_6">
<ul class="nomargin">
<li><label for="paard">Paard/Pony*:</label>[[+fi.error.paard]]<input [[+fi.error.paard:isnot=``:then=`class="invalid"`]] type="text" id="paard" name="paard" value="[[!+fi.paard]]" /></li>
<li><label for="vader">Vader Paard/Pony:</label>[[+fi.error.vader]]<input [[+fi.error.vader:isnot=``:then=`class="invalid"`]] type="text" id="vader" name="vader" value="[[!+fi.vader]]" /></li>
<li><label for="combi">Combinatienummer:</label>[[+fi.error.combi]]<input [[+fi.error.combi:isnot=``:then=`class="invalid"`]] type="text" id="combi" name="combi" value="[[!+fi.combi]]" /></li>
<li><label for="categorie">Categorie*:</label>[[+fi.error.categorie]]
<select [[+fi.error.categorie:isnot=``:then=`class="invalid"`]] type="text" id="categorie" name="categorie" value="[[!+fi.categorie]]">
<option value="">Selecteer een categorie</option>
<option value="0" [[!+fi.categorie:FormItIsSelected=`0`]]>A</option>
<option value="1" [[!+fi.categorie:FormItIsSelected=`1`]]>B</option>
<option value="2" [[!+fi.categorie:FormItIsSelected=`2`]]>C</option>
<option value="3" [[!+fi.categorie:FormItIsSelected=`3`]]>D</option>
<option value="4" [[!+fi.categorie:FormItIsSelected=`4`]]>E</option>
<option value="5" [[!+fi.categorie:FormItIsSelected=`5`]]>Paard</option>
</select>
</li>
<li><label for="klasse">Klasse*:</label>[[+fi.error.klasse]]<input [[+fi.error.klasse:isnot=``:then=`class="invalid"`]] type="text" id="klasse" name="klasse" value="[[!+fi.klasse]]" /></li>
</ul>
</div>
<div class="grid_12">
<label for="bijzonderheden">Bijzonderheden:</label>[[+fi.error.bijzonderheden]]<textarea [[+fi.error.bijzonderheden:isnot=``:then=`class="invalid"`]] id="bijzonderheden" name="bijzonderheden">[[!+fi.bijzonderheden]]</textarea>
</div>
<input type="hidden" name="wedstrijd" id="wedstrijd" value="[[*pagetitle]]" />
<input type="hidden" name="pageid" id="pageid" value="[[*id]]" />
<input type="hidden" name="name" id="name" value="" />
<div class="grid_12 center"><input type="submit" value="Inschrijven" /></div>
</form>if ((time() <= strtotime($modx->resource->getTVValue('subscriptionDate')))){
return '<div class="grid_12">
<h2>Inschrijven</h2>
[[*content]]
</div>
[[!FormIt? &hooks=`...` &validate=`...` ...]]
[[$subscriptionForm]]';
}
return ''; // or something else
Okay, just for testing: could you try to remove the " symbols in your chunk where you define the class invalid? Perhaps these symbols interfere with your snippet.Sadly that didn't work, thanks for your replies anyway!
Try putting an :else=`` in your conditional.There is a :else``, but didn't include it in my question to not confuse readers with unnecessary code

Thanks, I did not know that.
BTW, in the tag with the conditional, everything is going to be parsed (including the FormIt call and the content) whether the condition is true or not, so it will delay page loads even when the condition is not met.
Works like a charm! Thanks!
I would put all the logic in a snippet -- something like this (untested):
<!--?php if ((time() <= strtotime($modx--->resource->getTVValue('subscriptionDate'))){ return '<div class="grid_12"> <h2>Inschrijven</h2> [[*content]] </div> [[!FormIt? &hooks=`...` &validate=`...` ...]] [[$subscriptionForm]]'; } return ''; // or something else