You are viewing limited content. For full access, please sign in.

Discussion

Posted to Laserfiche Cloud

Discussion

Phone number mask with Laserfiche Cloud

posted on October 18, 2019 Show version history
$(document).ready(function () {
 $(".phone").on("change" , "input" , mask_num);
 function mask_num(){
 $.getScript('http://FormsServer/Forms/js/jquery.mask.min.js', function () {
   $(".phone input").mask("(999)999-9999");   
 });
    }
 });

Is it possible to use the phone number masking with Cloud systems?  What would the location value be for the "jquery.mask.min.js" file to be used in the code?

0 0
replied on October 20, 2019

You will want to use one of the CDN hosts. https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.min.js and https://cdn.jsdelivr.net/npm/jquery-mask-plugin@1.14.16/dist/jquery.mask.min.js should both work for the current newest version. If you will need to use an older version or need to update when they have an update you can use the links https://cdnjs.com/libraries/jquery.mask or http://www.jsdelivr.com/projects/jquery.mask to get the link you need.

0 0
replied on October 21, 2019

Thanks, Michael.   That works great!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.