Re: Can you add additional fields after the "submit" button on a form?

Anonymous
Not applicable

Can you add additional fields after the "submit" button on a form?

I am trying to add a newsletter subscribe form that looks like this:

Screen Shot 2018-03-02 at 2.14.30 PM.png

But underneath I'd like to add a Privacy Policy check box with a link to the Privacy Policy agreement. That looks like this:

image.png

Is it possible to use custom CSS to add the field?

Thanks!

6 REPLIES 6
Grégoire_Miche2
Level 10

Re: Can you add additional fields after the "submit" button on a form?

Hi Lauren

You need to add your check box in the form first, which supposes that you use a field in the database.

Once this is done, you can use some CSS and even some JS to move the elements around.

-Greg

Anonymous
Not applicable

Re: Can you add additional fields after the "submit" button on a form?

I'm a newbie at this. I see where you can add custom CSS to a form. How do you add Javascript? We are going to incorporate the Form Field and Button Side by Side - Is It Possible to get the button to the left of the email address field.

Grégoire_Miche2
Level 10

Re: Can you add additional fields after the "submit" button on a form?

HI Lauren,

The JS has to be added in the LP template.

-Greg

Anonymous
Not applicable

Re: Can you add additional fields after the "submit" button on a form?

The form is being embedded and not built on a Marketo landing page. Just to clarify, you can only use Javascript when a form is on a landing page?

Grégoire_Miche2
Level 10

Re: Can you add additional fields after the "submit" button on a form?

No, you can also use the JS on the embedded form. You need to add the specific code to the embedded form JS itself, as described in the forms API documentation:

http://developers.marketo.com/javascript-api/forms/

-Greg

Anonymous
Not applicable

Re: Can you add additional fields after the "submit" button on a form?

Thanks! We will give this a try!