This question has been flagged
4 Replies
13705 Views

I would like to be able to add some custom HTML to specific web pages.

For example - a form to sign up to a 3rd party event

<form action="//papercraft.list-manage.com/subscribe/post?u=dca1e124858ea9&amp;id=3407b9b1ce" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
 

When I try to add this with the HTML Editor, I get this error.

Malformed XML document:
This page contains the following errors:error on line 25 at column 159: Specification mandate value for attribute novalidate Below is a rendering of the page up to the first error.

Anyone know how to make this work?

Avatar
Discard

@Tim,
Odoo works in strict XHTML. This means your HTML needs to be reformatted so that it is properly nested according to XML/XHTML standards.

XHTML is also unforgiving in that if you forget to close a tag (for example the form tag above) you'll get this kind of error.

I've run into similar issues before due to attributes that work in html (eg. custom-attribute), but are not written according to XML/XHTML standards (eg. above example could be fixed by changing 'novalidate' to something like 'novalidate="False"'), as @John has pointed out below.

Best Answer

HTML tags must be closed is one thing I see... It also looks like novalidate needs a value like novalidate="False" or "True"...

http://www.w3schools.com/tags/tag_form.asp

Check to see if you copied and pasted your form correctly.

Avatar
Discard
Best Answer

This really helped me with this problem: http://www.csgnetwork.com/cvthtml2xhtml.html

Avatar
Discard
Best Answer

Try this:


<form action="//papercraft.list-manage.com/subscribe/post?u=dca1e124858ea9&amp;amp;id=3407b9b1ce" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="False" />



Avatar
Discard