I tried several external jquery Lib for mask input as well, finally I selected autoNumeric() that you may try. It is easy to use so far, but you need to play around it first in order to understand how to use.
//doc for autoNumeric v1.8
Note, don't use any latest version of autoNumeric() as it may NOT compatible with jQuery. Use my recommended version as I already tested and used with ProcessMaker v3.x at least.
Steps to be noticed:
1. put the link below into the "external Libs" property of your Dynaform:
2. Create at least 2 or 3 textboxes and 1 grid with a textbox in Dynaform for testing
i.e. 1 textbox for user inputting raw number or integer with decimal figure
i.e. 1 textbox for copying the 1st textbox value into this 2nd textbox with autoNumeric init, and set methods etc.
3. Show you some examples of the tricky syntax below.
4. Kindly try, if still not working for you, I could show you an example of how to use it next time, good luck!
Let me know any progress, cheers...
Code: Select all
//e.g. initialize 1-time only for which textbox that will use autoNumeric()
//e.g.update the total invoice amount txt_apTIAmount by:
var summary = $("#"+gridId).getSummary("txt_amount");
//e.g. apply autoNumeric() on a textbox in a Grid
$('#grid01').getControl(1,1).autoNumeric('set', 0); //or
//get back the raw numeric from formatted textbox
var rawAmount = $('#grid01').getControl(1,1).autoNumeric('get');