[SOLVED] FormBuilder: HTML validation errors in forms.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Trenia
Forum Members
Forum Members
Posts: 81
Joined: Thu Dec 11, 2008 12:48 pm

[SOLVED] FormBuilder: HTML validation errors in forms.

Post by Trenia »

Hi, I am not exactly sure where to post this, and if it is a FormBuilder issue or something else.

I get similar HTML validation errors at both form pages that I have http://validator.w3.org/check?uri=http% ... 2Fservices

and

http://validator.w3.org/check?uri=http% ... ne&group=0

Problem is, I don`t know where to correct it. From where in admin, or which file(s) and location? I would very much appreciate it if someone could point me in the right direction. Thank you :)
Last edited by Trenia on Tue Mar 10, 2015 10:28 am, edited 1 time in total.
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm

Re: FormBuilder: HTML validation errors in pages with forms.

Post by reneh »

the validator tell on first line:
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


So be sure the call of form is not inside a paragraph <p></p>
Very often designers make templates that have p's around the content tag...
And other times its put into content via TinyMCE enabled. And TinyMCE adds p as default around most items...
ReneH 8-)
A search will save you hours waiting for an answer! Image
User avatar
Trenia
Forum Members
Forum Members
Posts: 81
Joined: Thu Dec 11, 2008 12:48 pm

Re: FormBuilder: HTML validation errors in pages with forms.

Post by Trenia »

Thank you very much. You are correct. I had <p></p> around the tag that calls the form. I am down to 4 errors. :)

I also use TinyMCE.

Edit: Now down to 2 errors. Removed height="52" width="150" in the forms template layout.

Can`t seem to figure out last two errors... nothing that can be fixed from inside admin from what i can tell. Guess the error must be in a FormBuilder file somewhere.
Last edited by Trenia on Tue Mar 10, 2015 8:50 am, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FormBuilder: HTML validation errors in pages with forms.

Post by velden »

FormBuilder has a 'Fieldset start' field type and a 'Fieldset End' fieldtype. I guess you omitted the latter.
User avatar
Trenia
Forum Members
Forum Members
Posts: 81
Joined: Thu Dec 11, 2008 12:48 pm

Re: FormBuilder: HTML validation errors in pages with forms.

Post by Trenia »

velden wrote:FormBuilder has a 'Fieldset start' field type and a 'Fieldset End' fieldtype. I guess you omitted the latter.
Both forms have a fieldset start and fieldset end in it. So where do I edit? Which Formbuilder file has the html coding for the fieldset?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: FormBuilder: HTML validation errors in pages with forms.

Post by velden »

I see. You probably can't use a fieldset like you do. Not sure how to explain. It's a container for form elements. You put the fieldset start and label in a <td> element etc.

As you can see (at least I see it in Firefox) it doesn't display properly.
User avatar
Trenia
Forum Members
Forum Members
Posts: 81
Joined: Thu Dec 11, 2008 12:48 pm

Re: FormBuilder: HTML validation errors in pages with forms.

Post by Trenia »

Forms are now passing validation after I removed fieldset start and fieldset end from them. Thank you. I guess I don`t need them. Forms seem to work fine. :)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: [SOLVED] FormBuilder: HTML validation errors in forms.

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”