In CFv5, I could add a custom input mask to the Extra Params of an input field. How can I do this in CFv6, as I do not see that item in the field configuration?
Thanks!!!
Rick
Thanks!!!
Rick
Hi Rick,
Under the "Advanced" tab, Extra attributes :
Under the "Advanced" tab, Extra attributes :
data-inputmask:mask goes hereBest regards
No problems! 🙂
Max,
I cannot seem to get this to work. I have tried:
Rick
I cannot seem to get this to work. I have tried:
data-inputmask : 999-999-9999
data-inputmask : '999-999-9999'
data-inputmask='mask' : '999-999-9999'None of which seems to work. What am I doing wrong?
Rick
Hi Rick,
I tested a few variations in CFv6 but they all seem to throw a JavaScript error in the mask code "VM1149:1 Uncaught SyntaxError: Unexpected token } in JSON at position 15" the block of code is this
I tested a few variations in CFv6 but they all seem to throw a JavaScript error in the mask code "VM1149:1 Uncaught SyntaxError: Unexpected token } in JSON at position 15" the block of code is this
if (n && "" !== n && (n = n.replace(new RegExp("'","g"), '"'),Bob
j = JSON.parse("{" + n + "}")),
j) {
Okay, I see why nothing was happening. I'll just wait until there's a fix.
Thank you!!!
Rick
Thank you!!!
Rick
Hi,
This works for me:
This works for me:
data-inputmask:'mask':'999-9999'Best regards
Hi Rick,
Checked and Max's latest version works for me too. It is not obvious to me from Max earlier post that the 'mask': part is needed.
Bob
Checked and Max's latest version works for me too. It is not obvious to me from Max earlier post that the 'mask': part is needed.
Bob
Thanks for this solution!
Can I change a mask based on a other dropdown field ?
For Belgium the country code = +32
For the Netherlands it's +31
For Germany it's +49
I had now as inputmask
data-inputmask:'mask':'+32 999 99 99 99'
But I want to change it based on a previous dropdown.
Can I change a mask based on a other dropdown field ?
For Belgium the country code = +32
For the Netherlands it's +31
For Germany it's +49
I had now as inputmask
data-inputmask:'mask':'+32 999 99 99 99'
But I want to change it based on a previous dropdown.
This topic is locked and no more replies can be posted.