Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
const formHandler = () => { window.MktoForms2.whenReady((mktoForm) => { console.log(mktoForm) }) } Apologies for the typo above, the proper mktoForm is within my local project. The mktoForm object prints to console but the form element that should be associated with it is still undefined...
Thanks for the insight. I think I had just been trying every combination which way because I was stuck. const formHandler = () => { window.MktoForms2.whenReady((form) => { window.form.onSubmit((form)=>{ console.log('test') window.form.submit() }) }) }It still cannot re...
I'm building a native react app that loads a Marketo form inside a modal when they hit a CTA button within the app. import React, { useState, useEffect } from 'react';const marketoScriptId = 'mktoForms';export default function MarketoForm({ formId, formData }) { const [isLoaded, setIsLoaded] = useS...
We have conversions that have been set up and tracking in Universal Analytics for years, and now after the GA4 migration are no longer working. I can see the Marketo Form Listener & Marketo Successful Submit tags being fired when they are supposed to be, so it seems like things on the GTM side are w...
Since the fields are required to begin with, and I'm not changing or manipulating their values in any way, there shouldn't be any reason to force assign them a value. I've tried this method to rule it out, and ultimately reverted the code back because it was unnecessary. So oddly enough, the code r...
Thanks! This is very helpful. I will certainly work towards implementing the V2 of the code - but I'd like to at least get this V1 working since I believe I'm very close. Any additional ideas as to why this would fail? Revised code below & updated JSFiddle for testing. Anything to do with hidden fie...
Thank you very much for providing some insight here. Unfortunately the form still does not post even when values are assigned to required fields & the "_mkt_trk" is set to null on the second post. Any other ideas? Is there any way to post errors to the console so I'm not just blindly guessing at wha...
I'm trying to submit a form twice via Marketo. The first submit should post all of the original data. The second submit should remap some of the form values. For some reason the form just gets stuck at "Please wait" when submitting. No errors - nothing. Can someone help me?