I have a per diem expense reimbursement form that has a text box for hours which is used in a calculation with a rate field to determine how much is owed to the individual. I'm trying to restrict the text box to accept hours in quarter hour increments (i.e. 2.25, 2.5, 2.75, 3). I am able to restrict it by using the following custom pattern:
\d*\.0|\d*\.00|\d*\.25|\d*\.5|\d*\.50|\d*\.75
However when you enter a whole number such as 2, 3, etc. it throws a validation error. When you enter "2.0" its fine. Also if you enter 2 it will append 2.00 (due to format being set to 2 decimals) to it but still gets a validation error. I have tried setting the decimal value to auto but still have the same problem. I also tried to add \d* without a decimal but that opens it up to any and all digits/decimal combinations. Any help with telling me how I can achieve this would be greatly appreciated! I'm about to pull my hair out!