Forms 2.0 with custom javascript?

Aqeel_Akbar
Level 4
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
there is a full javascript API at your disposal. 
http://developers.marketo.com/documentation/websites/forms-2-0#api-reference
Aqeel_Akbar
Level 4
Awesome, thanks guys!
Josh_Hill13
Level 10 - Champion Alumni
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.
Anonymous
Not applicable
You can add custom JavaScript. Please see the developer documentation:
http://developers.marketo.com/documentation/websites/forms-2-0/