Different types of format in decimal numbers

Good morning to all guys. I have a simple question, I have a form that allows you to insert drinks. In the price input, I would like both numbers written in this “0.5” and “0.5” format to be valid. However, currently it only accepts the comma and if I try to insert a number with the point it just deletes the point, therefore 0.5 becomes 5. How can I solve it?

This topic was automatically closed after 70 days. New replies are no longer allowed.