Campaign Monitor form problems

Posted in: Newspaper
Post count: 19

I am trying to implement a Campaign Monitor form using one of their pre-configured buttons.

I can get it to work on my test server (different theme) http://splendourweb.com/test/
And on a post on the Newspaper theme site: http://digitalconstructionnews.com/2016/02/28/test/

But as soon as I use the Visual Composer, the code won’t work
Example here: http://digitalconstructionnews.com/test/

This is the code I’m using from Campaign Monitor:
<div class=”createsend-button” style=”height: 27px; display: inline-block;” data-listid=”t/CF/A13/D01/E17797086DB95035″></div>
<script type=”text/javascript”>// <![CDATA[
(function () { var e = document.createElement(‘script’); e.type = ‘text/javascript’; e.async = true; e.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) + ‘://btn.createsend1.com/js/sb.min.js?v=3’; e.className = ‘createsend-script’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(e, s); })();
// ]]></script>

Similarly, when I try to insert some standard form embed code from Campaign Monitor (using a standard text block), it won’t let me save the page because it wants me to enter something in to the fields – in the back-end. It seems that the editor is trying to render the form and the Page save button is being treated as the form save button.

Please help as we need to go live.

Thanks.

Post count: 22421

Hello,
You need to add a raw html element into visual composer and add the code inside and it will display: http://screencast.com/t/g6BpnoFC5IM It will also work inside a text box in text mode (not visual)
You need to make sure you insert the correct code though as if you copy it in some other field that modifies the code (like this forum) and then copy it again, you will loose formatting.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.