If you want to fill your form with numeric data it will not be recognized automatically as an integer as defined in MySQL. If you work with a mask setting to Integer the input becomes very slow and still does not recognize the integer as defined in the settings. The value for the new record stays 0. This means numbers must be put in as strings and validated with Custom Code?
Hi hoekbrwr,
There is definitely something wrong with the masking code for integer and number - the date masks seem to work OK. I haven't so far been able to dig down and find out what is going wrong with this part of the library.
I don't; see the same problems as you in saving integers to the database though - in my tests that worked correctly,
Bob
There is definitely something wrong with the masking code for integer and number - the date masks seem to work OK. I haven't so far been able to dig down and find out what is going wrong with this part of the library.
I don't; see the same problems as you in saving integers to the database though - in my tests that worked correctly,
Bob
Hi,
I spent some time trying to run down the bug with the integer and numeric masks without success, I think something has gone astray in the minifying :-(
I've attached a zipped version of a replacement file which needs to be uploaded to replace the current file
/libraries/cegcore/assets/jquery/jquery.inputmask.js
This file includes the current release of Robin Herbots library including all of the extensions. On my checks so far it appears to be working OK with the existing element Mask settings. You can also use many more masks by checking the documents here.
To add a new mask:
a) Make sure that the library is loaded; this will happen automatically if you have a masked element in your form (if necessary you can create one and set the Load State to 'Parent hidden'; or you can load it from a Load JS action).
b) Add the mask settings to the element Extra Params box as e.g.
Note the if you use the Extra Params box then ChronoForms will add quotes around the right hand part of the setting so you need to leave them out to get the mask to work.
Bob
I spent some time trying to run down the bug with the integer and numeric masks without success, I think something has gone astray in the minifying :-(
I've attached a zipped version of a replacement file which needs to be uploaded to replace the current file
/libraries/cegcore/assets/jquery/jquery.inputmask.js
This file includes the current release of Robin Herbots library including all of the extensions. On my checks so far it appears to be working OK with the existing element Mask settings. You can also use many more masks by checking the documents here.
To add a new mask:
a) Make sure that the library is loaded; this will happen automatically if you have a masked element in your form (if necessary you can create one and set the Load State to 'Parent hidden'; or you can load it from a Load JS action).
b) Add the mask settings to the element Extra Params box as e.g.
data-inputmask='mask':'aa-9999'
or data-inputmask='mask': '9', 'repeat': 10, 'greedy' : false
or add them with JavaScript following the examples in the library docs.
Note the if you use the Extra Params box then ChronoForms will add quotes around the right hand part of the setting so you need to leave them out to get the mask to work.
Bob
Hi,
I spent some time trying to run down the bug with the integer and numeric masks without success, I think something has gone astray in the minifying :-(
I've attached a zipped version of a replacement file which needs to be uploaded to replace the current file
/libraries/cegcore/assets/jquery/jquery.inputmask.js
Hello Bob
Thank you for this post. I have also noticed the issues with Integer masks.
Can you also send me the attachment you mention?
Thank you
Amelia
This topic is locked and no more replies can be posted.