(I come from a codeIgniter background - so bear with me)
When a member is registering on my site, I want to show a per-field error message; similar to the CodeIgniter form_error(‘field_name’) function with the form_validation library.
From what I can see, the member registration page; and even the suggested wiki entry for a “standalone” registration form don’t address this capability.
I’d like to be able to do something like this:
//this is just for demonstration - i know this function doesn't exist
{form_declaration}
<fieldset><legend>{lang:login}</legend>
<div {if form_error('username')}class="error"{/if}>
{form_error('username')}
<label for="username">{lang:username}</label>
<input type="text" class="textInput" name="username">
</div>
</fieldset>
<input type="submit" value="{lang:submit_button}">
</form>From what I can see in the Solspace extension, the EE documentatin, and the wiki - all errors are sent to the “specialty template” for displaying errors.
Do I have a choice on this behavior or am I going to have to do a blended CI/EE install to get this to work how I want it to?
Moved to HowTo by Moderator