Page 1 of 1

SOLVED - Formbuilder label tag problem

Posted: Mon Apr 13, 2009 5:27 pm
by lainyrache
Hi

I am using formbuilder for a contact form on my site, but the for attribute in the label tags are not matched correctly with the ids on some fields.
Eg:

Code: Select all

<label for="m3_4">Your Name:</label><input type="text" name="m3fbrp__4" id="m3fbrp__4" value="" size="25" maxlength="128" />
<label for="m3_18">Your Email:</label><input type="text" name="m3fbrp__18" id="m3fbrp__18" value="" size="25" maxlength="128" />
<label for="m3_6">Subject:</label><input type="text" name="m3fbrp__6" id="m3fbrp__6" value="" size="25" maxlength="128" />
<label for="m3_7"><span class="error" title="required">*</span>Message:</label><textarea name="m3fbrp__7" cols="60" rows="5" id="m3_7"></textarea></div>
I think this must be a problem with the latest version of CMSMS as previously I have used 1.5.2 and not had this problem. I am now using CMSMS version 1.5.3

Has anybody else come across this?

Thanks for any help,
Rachael

Re: Formbuilder label tag problem

Posted: Mon Apr 13, 2009 5:42 pm
by Dr.CSS
Does this present a problem when using the form, as in submission, or styling or ?, not sure what it is doing that is a problem, it looks like it has a short , have you tried deleting the form and starting over, do you have the latest version of formbuilder?...

Re: Formbuilder label tag problem

Posted: Wed Apr 15, 2009 9:53 am
by lainyrache
Hi Mark,
Thanks for your reply. You were quite right it was an old version of formbuilder - I should have checked that first, instead of checking and rechecking just about everything else!

It was a problem with the outputted html, not the styling or submission. The code will not validate with unmatched for and id attributes.
It is all fixed now.
Many thanks
Rachael