Mask Text field

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
jhlibreros
Posts: 1
Joined: Mon Jul 02, 2018

02 Jul 2018

I tried to user jquery.mask. js with the next instructions, but i cannot make it work?
//set jQuery to global scale, so uploaded files can use it
window.$ = $;
window.jQuery = $;

//import uploaded files to the page
var imported = document.createElement('script');
//don't forget to change site url to your site name, shared documents is the default name of "Documents" folder
imported.src = '/sites/Pas/SiteAssets/js/jquery.mask.js';
document.head.appendChild(imported);

//need a little time to load js file
setTimeout(function(){
$('.ccsContacto').mask("99\99\9999");

}, 500);

Can you help me please?

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

03 Jul 2018

Dear jhlibreros,
Can you please send us the link to download the aforementioned jquery.mask.js? Otherwise, we won't be able to test it ourselves.
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests