{** Please use this smarty code to carry our form validations **} {if ($form->formHasRun() && !$form->formIsValid()) || $viewIsError}