T
Tatakau
I have two objects on a form that I am trying to manipulate. The first is a
combo box to select a credit card type (Mastercard, Visa, Discover, Etc.).
The second is a text field to hold the actual credit card number.
In order to prevent data entry error, I have put an input mask on the text
field of 0000-0000-0000-9999. The last 4 digits are 9s (optional entry)
because one of the credit card types has only 12 digits as opposed to 16.
However, that would mean that someone could enter a 12 digit number for a
card with 16 digits, which is of course not good. Using the above input mask
is a very sloppy fix, and doesn't account for all possible entry errors. Is
there any way to dynamically change the input mask to adjust for which credit
card type is selected?
Visa, Mastercard, etc.: 0000-0000-0000-0000
Custom Card: 0000-0000-0000
Thanks,
Nick
combo box to select a credit card type (Mastercard, Visa, Discover, Etc.).
The second is a text field to hold the actual credit card number.
In order to prevent data entry error, I have put an input mask on the text
field of 0000-0000-0000-9999. The last 4 digits are 9s (optional entry)
because one of the credit card types has only 12 digits as opposed to 16.
However, that would mean that someone could enter a 12 digit number for a
card with 16 digits, which is of course not good. Using the above input mask
is a very sloppy fix, and doesn't account for all possible entry errors. Is
there any way to dynamically change the input mask to adjust for which credit
card type is selected?
Visa, Mastercard, etc.: 0000-0000-0000-0000
Custom Card: 0000-0000-0000
Thanks,
Nick