Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
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...
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.
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 ?
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.
Right now everything is local I will work on getting a dev site up that you can access.
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 ...
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...
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...
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.
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...