Input field ignores conditional max value - validation not enforcing limit

Hey everyone,

I’m running into a validation issue with a number input field that has a conditional max value.

Setup:

  • Number input field with a conditional max value formula

  • The max value changes dynamically based on a selection in another dropdown

  • I’ve tested the formula itself - it correctly calculates and updates the max value

The problem:

Even though the max value is set (e.g., max = 9), the input field still allows me to type in higher numbers (e.g., 10). The conditional formula works and updates the max attribute, but the validation doesn’t seem to enforce it.

Is this a known limitation with conditional max values on number inputs? Do I need to implement additional validation logic, or is there a setting I’m missing to enforce the max constraint?

Any guidance would be appreciated!

Hi Balint :waving_hand:

Can you share some screenshots from your project, mainly the formula and the settings of your input field?

hi @bbalint0918 ,

“min number” and “max number” settings don’t restrict input. With these settings you just set a rule for a browser to validate the input. So if the inputted number is larger than “max number” then the browser will mark it as “isValid == false” as a nested element of the form. But the value will still remain entered.

If you want to prohibit data input on any condition, you’ll need to add some JS.

1 Like