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 ?
They don't have masks because you didn't set masks in Form Editor. You never need to manually include the plugin. Marketo includes it automatically when necessary.
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.
So this line seems to be the problem:
form.getFormElem().find('[name=' + k + ']').unmask();
form.getFormElem().find('[name=' + k + ']').hide();
Of course, the plugin is only included if you have at least one masked input. Which you don't...