Form submission due to data field // Request Double Opt In before redirect to Thank you page // associate Lead befor end of Form.onsuccess
Hi everyone,
for marketing consents we use a doulbe opt in process. We have some content we want to show a visitor only in case he has already a valid double optin.
Importend: It's about a non-Marketo Landingpage
My current concept is something like:
- Add a marketo form in a non-Marketo Landingpage (with own JS)
- When form is send:
- Add an invisible iFrame to the page pointing to a Marketo landingpage
- The LP in the iFrame uses Tokens to send data to the main page
- Handle the data in JS to find out if the user already has a double opt in.
- If yes - forward the user to the thank you page
- If no - show a corresponding message. (The form sumit itself started the DOI process in that case
What's the issue:
- I start the process IN mktoForm.onsuccess
- The iFrame shows the data for the current associated lead
- But the association is finished just AFTER mktoForm.onsuccess
Unfortunately the associateLead feature isn't supported anymore.
Do you have an idea how to call the iFrame aka. Data Transfere Page kind of "mktoForm.AFTERSuccess"?
Or do you have an idea how to associate the lead before sending the form?
(Currently the only idea I'd have would be to send another form in between but I hope for an easier less complex solution.)
Best Regards
Wolfram