So you would need to add a . in there to allow decimal since you are constraining it to just digits.
That constraint works if you put it where I showed you exactly and you have not modified anything else in the tutorial…and if it is dealing with the tutorial in this thread NOT the % tutorial.
You can not constraint it to just allow 2 numbers and then expect to be able to type 1.45… you can add a decimal into it… but it would still only allow 2 numbers… What you need is a constraint to not allow it to discount more than price. And take off the mask that restricts it to just digits and no decimal.
You are mixing 2 different discount types and talking a bout them like they are 1. This is confusing me and yourself.
The mask I showed you for restricting it to just 2 digits is good for a % off … but not good for an exact amount like this tutorial. I read between the lines and realized you were talking about % off. The same mask would obviously not work for the fixed amount discount.
Bottom line you will not be able to use the same mask for those two different discount systems. You need to figure out one you like for % off and figure out one you would like for the custom amount discount. By restricting % off to just 2 digits you effectively constrain it so it will not allow 100% off… so no need for anymore constraints…
The custom amount discount as described in this tutorial would need a constraint preventing amount from exceeding items Price. You would not need an input mask entered in this case because if they entered too large of amount it would check constraint and not allow it.