Display Specific Marketo Form in Lightbox in an AEM page containing Multiple Forms
Hello Community!
I am trying to use the Marketo Lightbox form on an AEM Landing page which already contains multiple Marketo forms. The idea is to display a specific form in Lightbox when a link is clicked. Currently, the script used is displaying all the Marketo forms in Lightbox overlapping each other.
I tried to insert the form using the attribute but it doesn't work.
Ex -
lightbox(form[data-formid=19103]).show();
Any suggestions would be appreciated!
<script>
MktoForms2.whenReady(function (form) {
$(".Form1").click(function ()
{ MktoForms2.lightbox(form).show(); });
});
</script>