I have what I think is an extremely simple question but I can't for the life of me figure out an answer. I have a form that a user wants to enter currency amounts in but I don't want the user to be able to enter more than 2 decimal places in the number and there is no absolute number of digits that will precede the decimal place. My problem is whenever I try to use an input mask, I can limit the decimals to two but the number entry before the decimal is always awkward in that it displays either blank spaces after the number you're typing so it looks weird or I'm forced to hard code the number of digits before the decimal.
Is there any way to format or use an input mask on a number field so that it allows the user to enter whatever number they want but won't allow them to enter more than 2 digits after a decimal point is entered?
Is there any way to format or use an input mask on a number field so that it allows the user to enter whatever number they want but won't allow them to enter more than 2 digits after a decimal point is entered?