Retain $_POST values in form's 'block' view

When using a custom form template stored in the _blocks folder, are the magic {name_field} type of methods supposed to retain POST values if the form contains errors?

I have a form defined in config/forms.php, and a view for it in _blocks\my_form.php. Following the documentation example, I added a bunch of fields to it, i.e.

<?=$comment_label?> <?=$comment_field?>
However even though the fields have "'required' => true" in the config file, all fields' values are lost upon submitting the form (though if they're ALL set, the form submits fine).

Is the $***_field syntax not enough to ensure these values are retained?

Comments

Sign In or Register to comment.