Forums

jQuery InputMask removeMaskOnSubmit

Austre 28 Oct, 2014
Hi,

I realized that ChronoForms uses the Input Mask version 2.4.8, based at this file:
/libraries/cegcore/assets/jquery/jquery.inputmask.js

I was trying to use removeMaskOnSubmit based on this page, but no success:
https://github.com/RobinHerbots/jquery.inputmask

So, i downloaded newest Input Mask and i'm in doubt about how to update Chronoforms libraries.

I dont know if is just copy jquery.inputmask.js file, cause have other files together like jquery.inputmask.date.extensions.js, jquery.inputmask.numeric.extensions.js.

🤨
GreyHead 28 Oct, 2014
Hi Austre,

I found some bugs with the integer and numeric masks and fixed them with the file attached. Unzip and replace /libraries/cegcore/assets/jquery/jquery.inputmask.js

It includes all of the extensions files and has been minified, it is updated to the releases as at 14 Sep 2104.

With luck it will also fix your problem.

Bob
Austre 28 Oct, 2014
Bob,

I make the changes and when form was submited, the field cpf comes with mask.
[attachment=0]img01.jpg[/attachment]

My Javascript is that one:
jQuery("#cpf").inputmask("999.999.999-99",{placeholder:" ", clearMaskOnLostFocus:true, removeMaskOnSubmit:true });
This topic is locked and no more replies can be posted.