I want to prevent the user from entering negative numbers or characters in the input.
i know that i can but min value to 0 and this will show a validation error to the user but i want to delete the negative sign when the user enters it.
and if the input is integer the user can write characters in the input and i don’t want the input to accept it too (not just validation, i want to remove these characters)
Great. So you need to check the input every time it’s changed.
If the value < 0, multiply it by -1 and replace the value in the input field.
By the way, users cannot enter any characters except numbers if you select ‘integer’ as the content format. Could you show me the problem you encountered, please?
that is a good idea but I need the number to be between 0 and 1000 so I was using the “set a range (min and max)” but this isn’t available for the Text (numbers only)