Error Message on Site Registration page

Permalink 1 user found helpful
I've recently developed a site for a client who wanted to capture a lot of information on the registration form and it now has about 20 fields. She also didn't want the users to go to the default white registration page so it's loaded through an iFrame into the Main Content area.

She is getting feedback from some clients that if they miss a field the error message displays at the top of the page and so they don't see it. How do I go about moving the error message to display at the bottom of the page?

Can it be done?

PassionForCreative
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
dude you can theme the register page with the theme,

look at

/config/site_theme_paths.php,

then, in your view, stick

<? if (isset($error) && $error != '') { ?>
   <? 
   if ($error instanceof Exception) {
      $_error[] = $error->getMessage();
   } else if ($error instanceof ValidationErrorHelper) { 
      $_error = $error->getList();
   } else if (is_array($error)) {
      $_error = $error;
   } else if (is_string($error)) {
      $_error[] = $error;
   }
      ?>
      <ul class="ccm-error">
      <? foreach($_error as $e) { ?><li><?=$e?></li><? } ?>
      </ul>


where you want the error,
chadsmith729 replied on at Permalink Reply
chadsmith729
lol, yup that's what I thought too. I pretty much by default change that right away when I start a new project. Good job bringing it up.
PassionForCreative replied on at Permalink Reply
PassionForCreative
Hi Mnkras

Thanks man, I've uncommented the site_theme_paths.php file & styled the page with my theme.

Where is the view file I add those bits of code to so I can get the error where I need it?
cfh replied on at Permalink Reply
Hi Mnkras,

Thank you very much for the answer about displaying error messages.
cursal replied on at Permalink Reply
cursal
Very Handy Tip!
Thank you