Don't worry, Greg, you never made it into our DB. You're definitely not contained in the program that I'm working on. If you want to PM me your email address that you used, I can check that as well.
Thanks for looking into this, Greg. The issue I had was the hidden values weren't contained in the "view source" code, but were contained using the browser's developer tools. Not sure why that it is.
Now we just need to insert the lead's first name in the sentence. I tried using the suggestion from Sanford Whiteman, but I'm not sure I implemented it properly (Marketo is also adding CDATA code within the script - so perhaps that could be the culprit).
The CDATA wrapper isn't affecting it -- see my response to your other question.
I still can't get this to populate. Do you see anything wrong in the code below? Here's what I have in the HTML snippet on the landing page (which appears after the form code within the HTML):
<script type="text/javascript">
MktoForms2.whenReady(function(form){
form.getFormElem()[0].querySelector('#showEmail').innerHTML = form.getValues().Email;
})
</script>
And here's the rich-text:
Please confirm your approval for <span id="showEmail"> </span> to attend the event.
Here's the page again for reference:
You didn't put the <SPAN id="showEmail"> inside the form, so that's why it wasn't finding it.
It doesn't actually have to be inside the form, I guess, so change to this:
MktoForms2.whenReady(function(form){
document.querySelector('#showEmail').innerHTML = form.getValues().Email;
})
You're a genius, Sanford Whiteman! The value you bring to this community is enormous!
Agreed
Thanks guys!
Hi Dan,
As the page is untracked, using tokens will not be possible. And no Marketo function would enable to do what you want.
So I gather that this would require some javascript coding to extract the 2 informations from the URL and display them in the page.
More something for Sanford Whiteman than for me
-Greg
Yeah, you could use hidden fields (thus using Marketo's existing querystring parser) and then use form.getValues() to read the values and display them anywhere else.