I have a snippet which holds different forms (so different form ID's). It is used to display language specific forms.
When the form(s) is loaded I need to tailor the form with some jquery.
How can I detect when the form is loaded, to start executing some jquery code?
I am not using directly something like:
MktoForms2.loadForm("//app-lon07.marketo.com", "644-GGO-416"
Since forms are added to the snippet with the embed code ...
Solved! Go to Solution.
Same standard event. Make sure this code is placed just inside the closing </body> tag so that MktoForms2 is in scope.
MktoForms2.whenReady(function(form){
// form is ready for initial customization here
});