dleopold

dleopold

Contact Me
Online Status
Offline
Date Last Visited
‎05-12-2025 10:28 AM
Level 2
Joined the community 20-10-2023
Rank Icon Level 2
  • solved badge Re: Conditional Progressive Form Substitution?

    Agreed, I'm planning on going back and renaming some of the variables since I realized I may need one more since the second form will ultimately lead to a completely different Thank You page once it's made. Thanks for your help!

    image_type
    Discussions
    5495 0 0
  • solved badge Re: Conditional Progressive Form Substitution?

    Ok, I think I got it! It seems to be working correctly, but let me know if you see any glaring errors: form.onSuccess( (values, followUpUrl) => { if ( criteriaMet === true ) { // RESET SUBMIT BUTTON ...

    image_type
    Discussions
    5514 0 2
  • solved badge Re: Conditional Progressive Form Substitution?

    @SanfordWhiteman I tried adding 'form.submittable(true);' to the onSuccess event, but the button still says Please Wait, so I'm guessing that's not the correct way to reenable the button. I don't see anything for it in the API documentation though. Am I missing something?

    image_type
    Discussions
    5544 0 4
  • solved badge Re: Conditional Progressive Form Substitution?

    Ah ok, that's interesting and definitely easier than bringing a second form into the mix. Do you have an example of what the onSuccess code would look like to reenable the Submit button? I did a quick search but I didn't see anything in here.

    image_type
    Discussions
    5616 0 5
  • solved badge Re: Conditional Progressive Form Substitution?

    Somebody else who worked at the company before me had written the initial code, so I'm just going in now to try to modify it for the new needs. I had edited some parts out when I posted so it wouldn't get too confusing and only show the relevant part of the code I was working with, but here it is in...

    image_type
    Discussions
    5643 0 7
  • solved badge Conditional Progressive Form Substitution?

    I'm trying to create a form where if the user selects a certain value from a dropdown field, their information will be sent when they click Submit, but then a second form with appear with additional optional questions. If they select anything else, they'll just get redirected to a Thank You page. No...

    image_type
    Discussions
    5666 0 9
  • solved badge Re: GTM Form Event Listener is overriding onSuccess script

    Thank you! One last question as I'm getting to the next phase of the code (I can start a new thread if needed):I'm trying to use the code found here to load the next form: https://nation.marketo.com/t5/product-discussions/on-form-submit-can-i-send-the-user-to-another-form/m-p/296722#M167226 How do I...

    image_type
    Discussions
    4780 0 1
  • solved badge Re: GTM Form Event Listener is overriding onSuccess script

    What would be the correct implementation then? Not sure if I'm thinking about this wrong, but would I put in a conditional statement in the GTM code? Something like form.onSuccess(function handleSuccess (values, followUpUrl) { window.dataLayer.push({ "event": "...

    image_type
    Discussions
    4836 0 3
  • solved badge Re: GTM Form Event Listener is overriding onSuccess script

    Actually, I may have figured it out. We use 1 of 2 JS files for all the forms on the site, so on the other JS file, I added an onSuccess script the same way I'm doing in the first one, just without the selection logic. Having it defined there is allowing me to remove the event callback in GTM then a...

    image_type
    Discussions
    4847 0 5
  • solved badge Re: GTM Form Event Listener is overriding onSuccess script

    How do I exclude them from the GTM callback? Is that a line of code that needs to be added in there? Or an exception that needs to be added to the entire trigger event in GTM?

    image_type
    Discussions
    4851 0 6
Latest Tags

Top Badges Earned

Customize up to 8 badges at the top of your trophy case for all other Community members to see!Customize up to 8 badges at the top of your trophy case for all other Community members to see!
  • Give Back 5 Give Back 5 Earned on 10.25.23 Earned by 1284 people Select to learn more
  • Affirm 1 Affirm 1 Earned on 10.20.23 Earned by 714 people Select to learn more
  • Give Back 3 Give Back 3 Earned on 10.20.23 Earned by 1978 people Select to learn more
  • Give Back 1 Give Back 1 Earned on 10.20.23 Earned by 4367 people Select to learn more
  • Ignite 1 Ignite 1 Earned on 10.20.23 Earned by 4267 people Select to learn more
Public Statistics
Date Registered ‎10-20-2023 11:26 AM
Date Last Visited ‎05-12-2025 10:28 AM
Total Messages Posted 11