AnsweredAssumed Answered

using jQuery mask plugin for input field , working in design but not working in the display mode.

Question asked by ejagkrch on Mar 23, 2016
Latest reply on Aug 19, 2016 by jccote2536

I have a simple text box, I'm trying to use jQuery mask for the input field, the custom code for test I'm using is this,

NWF$(document).ready(function(){

NWF$( ".PhoneNumber" ).change(function() {

NWF$( "#" + PhoneNumber ).mask("99/99/9999");

});

});

I downloaded all of these js files and added in the assets library and calling in the form settings ->Advance section.

jquery.inputmask/js at 3.x · RobinHerbots/jquery.inputmask · GitHub

It's working fine in the design Preview mode. But when I publish and create a new form it start throwing errors.

On initial form load I get, on all the js files I'm calling

Uncaught SyntaxError: Unexpected token <

and than after inital load complete when I enter input it show me.

Uncaught TypeError: NWF$(...).mask is not a function

Please guide.

Thanks.

 

Outcomes