Input box validation

I want to ensure users do not enter a number larger than a number in the DB, is there a way to restrict that with input box?

Hi @karel,

There are multiple ways to do it:

  • use input validation component(s) from the marketplace (they are paid)
  • use conditional action on the submit button (you continue to the next screen only if the number in the database is <= other components → input)
  • use button states to disable button using same condition as above
  • use visibility condition on the button itself to hide the button using same condition as above.

Best,
Victor.

Thanks for that! I am trying to get the conditional to work against numbers so I can have the option of “less or equal to”, but even though I choose the input box as number, it still shows me only the option as if it’s text. This is from their documentation, I can’t seem to find a numbers component

Hi @karel,

Yes, that is why I wrote “if the number in the database is <= other components → input”. In the first condition you put a number, and then you can compare it with the input’s value (not the other way round).

Best,
Victor.

Got it, thanks!