How can I change our email sign up from old vendor to Marketo? | Community
Skip to main content
Jen_Heidenreich
Level 2
September 5, 2018
Question

How can I change our email sign up from old vendor to Marketo?

  • September 5, 2018
  • 1 reply
  • 2758 views

We have a email sign up that is on a template level of our site. It is already branded. We are switching to Marketo for sending the emails, and so we want the sign up to continue to look as it does, but send to a Marketo form. I understand how to place a form designed in Marketo onto a web page, but it will not match the current formatting. Here is the current sign up:

Is there a way to code the button to send to a Marketo list?

Thank you for all you do,

jen

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
September 5, 2018

Yes, if this is a generic HTML form, you can capture the standard submit event and redirect the form data (just one form field in this case) to a hidden Marketo form, then submit the hidden form.

Search the Community for "background form," "hidden form" et al. to see numerous examples of the technique.

If you provide an actual URL, I can check how hard this transition will be for this form (remember, we can't troubleshoot a screenshot).

P.S. I'm not convinced you can't use a Marketo form for this one-line form, but I understand if you don't want to do any restyling.

Jen_Heidenreich
Level 2
September 5, 2018

Thank you so much. I found the article on hidden forms...does the code need the script code from embed code?

<script src="//app-sjo.marketo.com/js/forms2/js/forms2.min.js"></script>

<form id="mktoForm_xxxx" style=”display:none”></form>

<script>MktoForms2.loadForm("//app-sjo.marketo.com", "452-ZON-215", xxxx);</script>

var myForm = MktoForms2.allForms()[0];

myForm.addHiddenFields({

                //These are the values which will be submitted to Marketo

                "Email":"test@example.com",

                });

myForm.submit();

SanfordWhiteman
Level 10
September 5, 2018

You need more than that (and you don't want to just add that code as it will automatically submit the form on page load).

What's your URL?

And can you please highlight the code in your post as JavaScript using the Advanced Editor's syntax highlighter?