Limit input to 3 digits before decimal and one digit after decimal

Hi All,

I am new to this platform. Need help with form building. Need to limit the user input to a maximum of 3 digits before decimal point and one digit after decimal. Can someone help!
E.g body temperature can be 99.9 or 100 or 101.2. These should be the accepted entries. Anything apart should throw an error message.

Welcome to the community, @an_ju! This post discussed previously should help you solve your issue:

Thank you. Will try this combo. I used regex(.,’^([0-1]{0,1}[0-9]{0,2})(.[0-9]{0,1})?$’) and int(.)>=95 and int(.)<105 in constraint to allow entry for body temperature between 95 and 105 and it works. So this allows the user to input 96(without decimal) or 96.1 as well.

1 Like