You can take a look at using a regular expression. Documentation can be found here.
Hope this helps.
Hi Ganesh,
You can add OnChange event microflow. In that microflow add condition to check regular expression and show validation message. You can check by following link.
Regular Expression to validate numeric value
This will work for you.
Hi Ganesh! There are two ways to do this:
Example js code:
document.getElementById("myInput").addEventListener("keydown", function(event) {
if (!/^[0-9]+$/.test(event.key)) {
event.preventDefault();
}
});
Maybe you could look with this question too since you have the same concerns.
https://forum.mendix.com/link/space/app-development/questions/128935