dondmcg

dondmcg

Contact Me
Online Status
Offline
Date Last Visited
‎12-01-2020 03:48 PM
Level 2
Joined the community 18-11-2020
Rank Icon Level 2
  • solved badge Re: changing value of marketo form before submit

    So this line seems to be the problem:form.getFormElem().find('[name=' + k + ']').unmask();it errors out saying unmask() is not a functionbut if I alter the code to be this:form.getFormElem().find('[name=' + k + ']').hide();all the elements are hidden and I get no error. If I look at: MktoForms2.$. t...

    image_type
    Discussions
    2259 0 1
  • solved badge Re: changing value of marketo form before submit

    The form editor is set up by another team. But I specifically asked them to set up those two masks. And I see the validation occurring so I tend to think they are set up. There is only masks on two of the inputs. However I am contacting that team to verify.

    image_type
    Discussions
    2262 0 2
  • solved badge Re: changing value of marketo form before submit

    Search for id: "phi_dateOfBirth"and id: "phi_ReferringPhysicianPhone"Are you saying neither of these fields have a marketo mask on them? Also does this require adding jquery.mask.js ?

    image_type
    Discussions
    2280 0 4
  • solved badge Re: changing value of marketo form before submit

    Let me know if you can see this page: https://env6.northwell.edu/test-phi-marketo-form-0To see the error submit the form with "test" as the value for every string and 1111111111 for every phone and 07221969 for the date of birth and test@test.com for email.

    image_type
    Discussions
    3716 0 6
  • solved badge Re: changing value of marketo form before submit

    Right now everything is local I will work on getting a dev site up that you can access.

    image_type
    Discussions
    3719 0 7
  • solved badge Re: changing value of marketo form before submit

    I added a polyfill that should make the code backward compatible. Let me know if that does not suffice?But something strange I noticed was that I have at least two inputs with masks applied to them. The first is a date of birth. The second is a phone number. I do not get the same error for phone ...

    image_type
    Discussions
    3723 0 0
  • solved badge Re: changing value of marketo form before submit

    OK I see how you add it on marketo "whenReady" however I need the form to validate first then inside the onSubmit after running some code I call a method to submit the form. So this is much later than "whenReady". I found this code: MktoForms2.$("body").on("mkto_inputmask_polyfilled", function(e...

    image_type
    Discussions
    3728 0 2
  • solved badge Re: changing value of marketo form before submit

    Please help. I have tried several ways of removing the input mask on the fields. With no luckconst thisForm = document.getElementById('mktoForm_' + formId);const phiFields = thisForm.querySelectorAll('[name^="personal_"]:not(select)'); for (var i=phiFields.length;i--;) { phiFields[i].unmask...

    image_type
    Discussions
    3733 0 9
  • solved badge Re: changing value of marketo form before submit

    So adding the REDACTED option and hiding it with js. Would also work no? Just like you did in your blog post?And I am not familiar with how to remove the literal mask applied to the inputs can you point me in the right direction? Thanks for the help I will mark this as the accepted solution.

    image_type
    Discussions
    3749 0 4
  • solved badge Re: changing value of marketo form before submit

    So if your solution is to remove the mask can that be done programmatically?My question is how do I strip personal information from the values onSubmit (preferably replacing with a string)?I just found your blog https://blog.teknkl.com/clearing-lead-fields-when-no-value-submitted/ this is not the sa...

    image_type
    Discussions
    6004 0 16

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 2.08.21 Earned by 1282 people Select to learn more
  • Give Back 3 Give Back 3 Earned on 2.08.21 Earned by 1977 people Select to learn more
  • Give Back 10 Give Back 10 Earned on 2.08.21 Earned by 719 people Select to learn more
  • Give Back 1 Give Back 1 Earned on 2.08.21 Earned by 4364 people Select to learn more
  • Ignite 1 Ignite 1 Earned on 2.08.21 Earned by 4266 people Select to learn more
Public Statistics
Date Registered ‎11-18-2020 06:12 AM
Date Last Visited ‎12-01-2020 03:48 PM
Total Messages Posted 15