How to reset a decimal input to its DB value when user enters a negative number

Hi guys,

I have decimal inputs inside a Repeating Group with auto-binding enabled (price field, should never be negative).

When a user types a negative value, Bubble correctly rejects the write to the DB — but the input keeps displaying the negative value. I need it to snap back to the current DB value.

I tried triggering a workflow on “input value is changed” to reset it, but couldn’t find a way to force the input back to its saved value.

I also tried removing auto-binding, the display problem remains.

Is there a clean way to handle this ?

Thanks

One way is disableing auto-binding and create workflow:
When Input’s value is changed
Only when Input’s value ≥ 0 → Make changes to Thing.

Do You already tried on this way?

Thanks for the solution, it actually works!

I was so deep in that “min - max” mess that I forgot to keep it simple.

Don’t forget to hit ‘reset relevant inputs’ ,even if I was scared it would reset the input before the make change fires, but turns out it works just fine.

Thanks again.