Re: Forms 2.0 with custom javascript?

Aqeel_Akbar
Level 4

Forms 2.0 with custom javascript?

Wondering if you can add custom javascript to forms 2.0?

Specifically, we want to have a field only be visible if a certain picklist value from another field is selected. We're able to do this with html forms posting into marketo on our marketing site, but wondering if we can have the same functionality using forms 2.0.

Would appreciate any help on this.

Thanks!
Tags (1)
4 REPLIES 4
Anonymous
Not applicable

Re: Forms 2.0 with custom javascript?

You can add custom JavaScript. Please see the developer documentation:
http://developers.marketo.com/documentation/websites/forms-2-0/
Josh_Hill13
Level 10 - Champion Alumni

Re: Forms 2.0 with custom javascript?

Yes.
  1. Forms 2.0 allows Visibility Rules on a field based on values in another field. See the Forms 2.0 Tutorial.
  2. If you want to add any custom javascript to control any of this, you can certainly do so. See developers.marketo.com or speak with your programmer to do this. You can add this to a Marketo LP by dropping in Custom HTML.
Aqeel_Akbar
Level 4

Re: Forms 2.0 with custom javascript?

Awesome, thanks guys!
Anonymous
Not applicable

Re: Forms 2.0 with custom javascript?

there is a full javascript API at your disposal. 
http://developers.marketo.com/documentation/websites/forms-2-0#api-reference