I have a form in which I have a Google Adwords conversion script in the "thanks" message. It's by purpose an AJAX form, because I don;t want a page reload (or new page) in this case.
This works perfectly, until I want to export this form and import it somewhere else.
The problem is: in this Google script there's a CDATA field too, So you will get this in the export XML:
<message><![CDATA[<p><strong>Thank you blablabla.</strong></p>
<!-- Google Code for Contactformulier (Ajax) Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxx;
// some more Google codes
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"></script>
<noscript>
<div style="display:inline;"><img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/xxxx/?label=zZvLCNOXsgIQ_ZGX_AM&guid=ON&script=0"/></div>
</noscript>]]></message>
The import itself will work, but when I try to edit the imported form it will show no fields and produce a javascript error..
Is there a way you can encode the data before export en decode it with the import, to prevent these situations?