PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Import error due to double CDATA fields

  1. acsnaterse
    Member

    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?

    Posted 12 years ago on Thursday April 5, 2012 | Permalink