I have been able to get this to work:
Code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/5.0.5/jquery.inputmask.min.js"></script>
Then in my custom.js file, I have this:
Code:
jQuery(function ($){
$("input[class*='maskzip']").inputmask("99999[-9999]");
$("input[class*='maskdate']").inputmask("99/99/9999");
$("input[class*='masktime']").inputmask("99:99");
$("input[class*='maskdatetime']").inputmask("99/99/9999 99:99");
$("input[class*='maskphone']").inputmask({"mask": "(999) 999-9999"});
$("input[class*='maskssn']").inputmask({"mask": "999-99-9999"});
$("input[class*='maskein']").inputmask({"mask": "99-9999999"});
$("input[class*='maskemail']").inputmask({"mask": "*{1,20}[.*{1,20}][.*{1,20}][.*{1,20}]\@*{1,20}[.*{2,6}][.*{1,2}]"});
});
Now, in the "CSS Class For Field" box, add the classname (such as maskemail) to mask an email address.
For the email address to work, I had to change the input type to text, and then I used custom validation:
Code:
^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$
This is based on information here:
github.com/RobinHerbots/Inputmask?utm_so...mpaign=cdnjs_library
Your mileage may vary.
I'm muddling through this like everyone else