PaulieScanlon / paulie-dev-2019-comments-repo

The repo that holds all the comments from paulie.dev
0 stars 0 forks source link

posts/2022/12/how-to-create-custom-marketo-forms-with-react/ #12

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Paul Scanlon | How to Create Custom Marketo Forms With React

Hello. It's been a little while, and I have a new job! I'm now at Cockroach Labs and in the coming months I'll be responsible for creating…

https://paulie.dev/posts/2022/12/how-to-create-custom-marketo-forms-with-react/

frankbueltge commented 1 year ago

Hi Paul,

Maybe you can help. I wanted to test your very nice example, but it doesn't work with our Marketo instance. But I also don't get any errors. I tried both forms in your example, but the forms don't submit the data. They just show "Submitting..." below the last form field and "Please wait..." on the button.

Here are my "credentials". I add them here because you can see them in any source code of a Marketo landing page anyway.

NEXT_PUBLIC_BASE_URL=go.efi.com NEXT_PUBLIC_MUNCHKIN_ID=559-INV-406 NEXT_PUBLIC_NEWSLETTER_FORM_ID=6391 NEXT_PUBLIC_FULL_FORM_ID=6389

Also, Charlie Dieter's example and the react-marketo-hook on Github did not work. Same issue.

I also tried the Marketo REST API endpoint URL, because this is actually the "base url".

Do you have any idea why it doesn't work on my side?

Thank you, Frank

PaulieScanlon commented 1 year ago

Hey, you might find that it works when deployed. I don't think it ever actually works in a local environment. It does work when it's on a production CND though. Probably a CORS thing.