Showing Pardot forms in TrenDemon Units

There are 2 cases with different implementations:

  1. Form without redirection.
  2. Form with redirection to some URL after form completion.

Important Notice: In both cases, you shouldn’t use some existing form that published on the website. Please duplicate some existing form or create a new one.

Form without redirection

1. Create new or duplicate some existing form.

2. Go to “Look and Feel” step, “Bellow form” tab and add the next code:

<script src="https://assets.trendemon.com/global/pardot-iframe-utils.js"></script>
<script>document.querySelector('form').addEventListener('submit', trd_pardot_report);</script>  

3. Go to Completion Actions step, “Thank You Content” tab and add the next code:

<script src="https://assets.trendemon.com/global/pardot-iframe-utils.js"></script>
<script>trd_pardot_notify();</script>

4. Add form code to the TrenDemon Unit

Form with redirection

1. Create new or duplicate some existing form.

2. Go to “Look and Feel” step, “Bellow form” tab and add the next code:

<script src="https://assets.trendemon.com/global/pardot-iframe-utils.js"></script>
<script>document.querySelector('form').addEventListener('submit', trd_pardot_report_and_submit);</script>

4. Add form code to the TrenDemon Unit