Hi,
Im not sure what I’m doing wrong. The problem is that the
<span class="error">Error</span>
code appears only around some items in my form and not all.
Using Login 1.6.4, here is my chunk
[[!Register?
&activationEmailTpl=`myform.register.emailTpl`
&activationEmailSubject=`[CLIENTNAME] Please confirm your e-mail address`
&activationResourceId=`64`
&usergroups=`freeusers`
&submittedResourceId=`97`
&activationttl=`1440`
&usernameField=`rusername`
&emailField=`rusername`
&passwordField=`rpassword`
&preHooks=`hook.emailValue`
&postHooks=`hook.emailNotify`
&errTpl=`<span class="error">[[+error]]</span>`
&validate=`workemail:blank,
rusername:required:email,
rpassword:required:minLength=^8^,
password_confirm:password_confirm=^rpassword^,
fullname:required`
&submitVar=`register-submit`
]]
[[!+error.message:notempty=`<div class="registerMessage">[[+error.message]]</div>`]]
<p>All fields are required</p>
<form action="[[~[[*id]]]]" method="post" class="form" id="registrationForm">
<fieldset>
<input type="hidden" name="workemail" value="" />
<label for="fullname"><span class="label">Your full name:</span>
<span class="input"><input name="fullname" id="fullname" type="text" value="[[+fullname]]" />
[[!+error.fullname]]
</span></label>
<label for="rusername"><span class="label">Your E-mail:</span>
<span class="input"><input name="rusername" id="rusername" type="text" value="[[+rusername]]" />
[[!+error.rusername]]
</span></label>
<label for="rpassword"><span class="label">Password:</span>
<span class="input"><input name="rpassword" id="rpassword" type="password" value="[[+rpassword]]" />
[[!+error.rpassword]]
</span></label>
<label for="password_confirm"><span class="label">Confirm Password:</span>
<span class="input"><input name="password_confirm"
id="password_confirm" type="password" value="[[+password_confirm]]" />
[[!+error.password_confirm]]
</span></label>
</fieldset>
<fieldset id="disclaimer">
<label for="confirm_disclaimer">
<span class="input-centred">
<input type="checkbox" name="confirm_disclaimer" id="confirm_disclaimer" value="Y" [[!+confirm_disclaimer:FormItIsChecked=`Y`]] />Confirm that you have read and agree to our <a href="disclaimer" class="colorboxDisclaimer">Disclaimer</a>
[[!+error.confirm_disclaimer]]
</span></label>
</fieldset>
<fieldset>
<span class="submitButtons"><input type="submit" name="register-submit" value="Register" /></span>
</fieldset>
</form>
This is what the form looks like when I don’t enter anything (to force the errors). Note the formatting. Only some of the error messages get the SPAN around them. There isnt anything visibly different between those that have the span tag and those that don’t.
Any ideas on this? BTW there used to be a double span tag problem but that was fixed in 1.6.4.
Thanks in advance.
John