Jump to content

[SOLVED] Cannot add webform to CMS page


Recommended Posts

I'm trying to add a simple web form to a prestashop CMS page and im getting an error: The content field is invalid.

 

The form code is here:

 

<form name="insightly_web_to_contact" action="https://googleapps.insight.ly/WebToContact/Create" method="post"><input type="hidden" name="formId" value="CENSORED_DATA"/><label for="insightly_firstName">First Name: </label><input id="insightly_firstName" name="FirstName" type="text"/><br/><label for="insightly_lastName">Last Name: </label><input id="insightly_lastName" name="LastName" type="text"/><br/><label for="insightly_organization">Organization: </label><input id="insightly_organization" name="Organization" type="text"/><br/><label for="insightly_role">Title: </label><input id="insightly_role" name="Role" type="text"/><br/><input type="hidden" name="emails[0].Label" value="Work"/><label for="email[0]_Value">Work Email: </label><input id="emails[0]_Value" name="emails[0].Value" type="text"/><br/><input type="hidden" name="phones[0].Label" value="Work"/><label for="phones[0]_Value">Work Phone: </label><input id="phones[0]_Value" name="phones[0].Value" type="text"/><br/><input type="hidden" name="websites[0].Label" value="Work"/><label for="website[0]_Value">Work Website: </label><input id="websites[0]_Value" name="websites[0].Value" type="text"/><br/><input type="submit" value="Submit"/></form>

 

This is a really simple form. I am amazed at how well done prestashop has become in version 1.6, and yet I am dismayed that really simple things like this are so freaking difficult.

Link to comment
Share on other sites

  • 1 month later...

Hi, I made these changes but am having trouble with my HTML changing after saving.

 

I am trying to save the embed code for my Google calendar, which worked fine on my old site:

 

<p><iframe src="https://www.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23ffcc66&src=yorkieteam%40gmail.com&color=%232952A3&ctz=America%2FLos_Angeles" width="805" height="600" frameborder="0"></iframe></p>

 

I select "source code" and paste in the above code snippet, then save. I see a big "?" image in the preview window then re-select "source code". However, it is being changed to this:

 

<p><iframe width="300" height="150" src="%5C"></iframe></p>

 

Any ideas why this is happening?

 

thanks!

Link to comment
Share on other sites

Hi, I made these changes but am having trouble with my HTML changing after saving.

 

I am trying to save the embed code for my Google calendar, which worked fine on my old site:

 

<p><iframe src="https://www.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23ffcc66&src=yorkieteam%40gmail.com&color=%232952A3&ctz=America%2FLos_Angeles" width="805" height="600" frameborder="0"></iframe></p>

 

I select "source code" and paste in the above code snippet, then save. I see a big "?" image in the preview window then re-select "source code". However, it is being changed to this:

 

<p><iframe width="300" height="150" src="%5C"></iframe></p>

 

Any ideas why this is happening?

 

thanks!

 

go to preferences > general

there is an option to turn on / off feature called HTML PURIFIER

disable it

 

this feature affects a lot of useful snippets

Link to comment
Share on other sites

  • 2 months later...

Trying to embed an iframe and running into the same issue on 1.6.0.8 

I have "Allow iframes on HTML fields" enabled and "Use HTMLPurifier Library" disabled and I'm still not having any luck.

 

http://i.imgur.com/5g9Gcg0.png

 

Thanks,

Don

 

where you're trying to embed iframe? maybe it's a case of .tpl file where |strip_tags modifier is on variable with your iframe

Link to comment
Share on other sites

×
×
  • Create New...