Solved! Go to Solution.
Dan -
I think I need something similar. My form is loaded into a page on our web site via an iframe. I need it to capture the referrer (ref) value from the URL:
i.e. xxx.com/static/400/?ref=DM
The form has a hidden field for the referrer. It works HERE in a non-iframe situation.
Our new reg. sign-up calls for an iframe delivery. Can you tell me what script is required in the iframe page that has the form?
Thanks!
Jim - does the script below not work for you? Our site no longer uses iframed marketo forms - we use embedded forms now. The code I posted below is what we used.
Dan, thanks for your reply. Re: the code posted on 11/8: When I tried it a couple of days ago there were errors so I re-posted the question. Since your reply I've re-attempted and haven't encountered errors so I'll proceed with the rest of the testing and (hopefully) site deployment. I appreciate your checking-in. Thanks again! - Jim