this is awesome! Your example worked perfect.
Data validation is probably one of the less used features I use in infopath. I usually set rules, give an error message and reset the field.
I do have one question. The number field in your example. If i format to have 2 decimal places, it still works great. What about if a user enters 5 instead of 5.00 or 5.0 ? how would you get that to work when entering just full hours without specifying the decimal holders.
I tried adding another pipe and then (" ") or ( ), but didn't work.
Thanks again, I greatly appreciate the help. Now I need to learn more on the data validation and expressions in infopath.