I have a form with 2 steps with mandatory fields (two text-fields) on each step. If I submit the form in the second step, it jumps back to the first step. Here the value of the field is empty and a validation error of the field is generated.
tplForm
[[!FormIt?
[[!+FormItParameters]]
&validationErrorMessage=`Bitte füllen Sie alle Pflichtfelder korrekt aus.`
&allowFiles=`true`
&attachFilesToEmail=`true`
&successMessage=`[[$tplSuccess]]`
&emailFrom=`[email protected]`
&formEncrypt=`1`
]]
[[!+fi.successMessage]]
[[!+fi.validation_error_message:notempty=`<p class="error">[[!+fi.validation_error_message]]</p>`]]
<form action="[[~[[*id]]]]#form-[[!+id]]" id="form-[[!+id]]" method="POST" enctype="multipart/form-data" novalidate class="form formStandard">
[[!+formalicious.navigation]]
[[!+formalicious.form]]
<div class="form-pagination">
[[!+step:neq=`1`:then=`<a href="[[!+prevUrl]]" class="btn btn--prev button" title="[[%formalicious.prev? &namespace=`formalicious` &topic=`default`]]">
[[%formalicious.prev? &namespace=`formalicious` &topic=`default`]]
</a>`:else=``]]
<button type="submit" class="btn btn--next button" name="[[!+submitVar]]" value="[[!+submitVar]]" title="[[!+submitTitle]]">
[[!+submitTitle]]
</button>
</div>
</form>
tpl textfield
<div class="form-group [[!+error:notempty=`has-error`]] uk-width-1-1">
<label for="[[!+name]]">[[!+title]][[!+required:notempty=`*`:empty=``]]:</label>
<div class="form-control--wrapper">
<input type="text" id="[[!+name]]" name="[[!+name]]" class="form-control [[!+error:notempty=`error`]]" value="[[!+fi.[[!+value]]:htmlent]]" [[!+placeholder:notempty=`placeholder="[[!+placeholder]]"`]] />
[[!+error]]
</div>
</div>
MODX 2.8.3
PHP 7.4
Formalicious 2.0.5