Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Insert HTML form in a web builder page

By
Tim Norton
on 2/1/15, 7:10 AM 2,177 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?

@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.

Luke Branch
on 2/2/15, 12:38 AM
1
John Baldwin
On 2/1/15, 2:35 PM

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.

0
Guillermo Martínez
On 11/17/15, 2:10 PM

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" />



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/1/15, 7:10 AM
Seen: 2177 times
Last updated: 11/17/15, 2:10 PM