How do we populate the form values in the view in the event validation fails in the action form?
Oh, I found the answer from developer mailing list. Thanks to Jason Sweat.
I had to add the following in the smarty php file, before displaying a template.
if ($_SESSION[_FORM]) { $tpl->assign('form', $_SESSION[_FORM]->_values ); }
Log in to post a comment.
How do we populate the form values in the view in the event validation fails in the action form?
Oh, I found the answer from developer mailing list. Thanks to Jason Sweat.
I had to add the following in the smarty php file, before displaying a template.
if ($_SESSION[_FORM]) {
$tpl->assign('form', $_SESSION[_FORM]->_values );
}