Solved! Go to Solution.
I was successfully able to do this using this: <code><script src="//{{lead.Snippet Code:default=edit me}}"></script></code> !
Hey Allison,
You created a snippet with the body of the script?
I tried putting the original script in <code> like your above example but MKTO wouldn't approve the email.
Did you HTML-encode the < and >?
Yep. The script also has this: ![CDATA[ // ]]
Would that have anything to do with it?
Yes, take it out. That has no reason to be in the email (and it's questionable whether it should be in the runnable code).
Ok, thanks.
Aside from CDATA though, putting the script in <code> brackets disconnected the form so the body email displays the text of the script instead of the form. Without the <code>, the form was showing up.
The form? I don't understand what this has to do with a form. What are you actually trying to display to the user in this email?