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
    5980 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
    5999 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
    6029 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
    6101 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
    6128 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
    6151 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
    5255 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
    5311 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
    5322 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
    5326 0 6
Latest Tags
Sort By
  • Give Back 5 Give Back 5 Earned on 10.25.23 Earned by 1285 people Select to learn more
  • Affirm 1 Affirm 1 Earned on 10.20.23 Earned by 717 people Select to learn more
  • Give Back 3 Give Back 3 Earned on 10.20.23 Earned by 1982 people Select to learn more
  • Give Back 1 Give Back 1 Earned on 10.20.23 Earned by 4386 people Select to learn more
  • Ignite 1 Ignite 1 Earned on 10.20.23 Earned by 4290 people Select to learn more
  • Applaud 1000 Applaud 1000 Earned by 3 people Select to learn more
  • Applaud 5 Applaud 5 Earned by 1844 people Select to learn more
  • Validate 500 Validate 500 Earned by 2 people Select to learn more
  • Boost 250 Boost 250 Earned by 59 people Select to learn more
  • Affirm 250 Affirm 250 Earned by 4 people Select to learn more
  • Shape 50 Shape 50 Earned by 7 people Select to learn more
  • Give Back 400 Give Back 400 Earned by 33 people Select to learn more
  • Ignite 70 Ignite 70 Earned by 19 people Select to learn more
  • Publish 70 Publish 70 Earned by 4 people Select to learn more
  • Validate 250 Validate 250 Earned by 3 people Select to learn more
  • Give Back 300 Give Back 300 Earned by 42 people Select to learn more
  • Ignite 60 Ignite 60 Earned by 24 people Select to learn more
  • Engage 100 Engage 100 Earned by 3 people Select to learn more
  • Publish 60 Publish 60 Earned by 4 people Select to learn more
  • Applaud 500 Applaud 500 Earned by 16 people Select to learn more
  • Boost 100 Boost 100 Earned by 121 people Select to learn more
  • Affirm 100 Affirm 100 Earned by 14 people Select to learn more
  • Give Back 200 Give Back 200 Earned by 57 people Select to learn more
  • Ignite 50 Ignite 50 Earned by 30 people Select to learn more
  • Publish 50 Publish 50 Earned by 4 people Select to learn more
  • Give Back 100 Give Back 100 Earned by 108 people Select to learn more
  • Ignite 40 Ignite 40 Earned by 42 people Select to learn more
  • Publish 40 Publish 40 Earned by 6 people Select to learn more
  • Validate 100 Validate 100 Earned by 3 people Select to learn more
  • Boost 50 Boost 50 Earned by 204 people Select to learn more
  • Affirm 50 Affirm 50 Earned by 25 people Select to learn more
  • Give Back 50 Give Back 50 Earned by 176 people Select to learn more
  • Ignite 20 Ignite 20 Earned by 116 people Select to learn more
  • Publish 30 Publish 30 Earned by 7 people Select to learn more
  • Boost 25 Boost 25 Earned by 356 people Select to learn more
  • Affirm 25 Affirm 25 Earned by 51 people Select to learn more
  •  Give Back 25 Give Back 25 Earned by 332 people Select to learn more
  • Give Back 10 Give Back 10 Earned by 721 people Select to learn more
  • Affirm 3 Affirm 3 Earned by 214 people Select to learn more
  • Boost 3 Boost 3 Earned by 1812 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