Last active
February 15, 2022 15:39
-
-
Save PardotGists/feda65564d01373d809f to your computer and use it in GitHub Desktop.
Using Form Field-Based Completion Actions Thank You Code Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var email = encodeURIComponent('%%email{js}%%') | |
switch('%%your_field_id{js}%%') | |
{ | |
case 'VALUE_1': document.write('<iframe src="FORM_HANDLER_1_URL?email=' + email + '" height="1px" width="1px" />'); | |
break; | |
case 'VALUE_2': document.write('<iframe src="FORM_HANDLER_2_URL?email=' + email + '" height="1px" width="1px" />'); | |
break; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried using these examples and haven't had any success. Do you know if this works for fields that have dropdown values?
Many Thanks in advance!