Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Got it. So, here's a working solution:HTML:
JS: (function() { /* config area - replace with your instance values */ var formIds = [X005], podId = '//info.example.com', munchkinId = '690-TWA-183'; /* no need to touch anything below this line */ var MKTOFORM_ID_PREFIX = 'mktoForm_', MKTOFORM_ID_AT...FYI: OnSuccess works fine. The issue is with definitely on the onFormRender.
FYI: After this post I decided to test it changing the readyform.onFormRender to MktoForms2.onFormRender and it worked for the first form.
So, here I am again. @SanfordWhiteman , thanks for letting me know how to grab the HTML form, and with that, I could improve the code. Now the first script is working fine, the whenReady is working fine, is capturing the forminstance and I can use it on the code. The thing now is, and I don't know w...
Oh, good to know! 😅My idea was to try to filter the form by the form-instance attribute getting first all the forms with ClassNames and then creating a variable for each one. Since getElementsByClassNames give me an Object, the first thing I thought of using was item, but I confess that I need to u...
Hi @SanfordWhiteman, thanks again. I'm trying to use both codes ("same form, multiple times and the one you gave me) in one, and I'm probably missing something, but this new code isn't working 100%. The first part, to multiply the form on the page, works perfectly, and the second part is being read ...
@SanfordWhiteman thank you very much for your answer but since it's a global form they all have the same ID. Perhaps I can add onFormRender and onSucess based on some data-attribute?
Hello everyone! We're migrating from Hubspot to Marketo on the company and using Global Forms. When I have to add only one on the page, everything is fine, but there's a specific page with a tabbed interface with four forms, and I have no idea how to add the same global form multiple times there. I ...