Add a form as an element instead of embedding?

Amelia_Thompson
Level 2

Add a form as an element instead of embedding?

Is there a way to add a form on a guided landing without embedding it? So that it is editable within the Marketo editor?

So instead of embedding the form:

<form id="mktoForm_XXXX" method="post" style="display:none;"></form>

Is it possible to put the actual form on the page as an element and have it be editable, something like this:

<form action=" ">

  First name:<br>

  <input type="text" name="firstname" value="Harry">

  <br>

  Last name:<br>

  <input type="text" name="lastname" value="Potter">

  <br><br>

  <input type="submit" value="Submit">

</form>

Basically to have it so the form can be modified in the Marketo editor as an element rather than embedding it. Is there a way to achieve this?

1 REPLY 1
Grégoire_Miche2
Level 10

Re: Add a form as an element instead of embedding?

Hello Amelia,

You cannot edit the form directly in the LP. You need to edit the form separately.

And you should not embed a form in a guided LP, you should rather use a mktoForm element inserted at the right place in your template (Create a Guided Landing Page Template - Marketo Docs - Product Documentation ). When you embed a form in an LP instead of using a MktoForm element, you are loosing the prefill feature.

-Greg