I have this in a modern text input control's OnChange. When I enter a decimal, it errors. I need to be able to limit the entry to a whole or decimal number only. Thanks for letting me know what I am missing, or does RegEx not work with modern controls?
If(!IsMatch(txtTotalCost.Value, "(-)?\d+(\.\d\d)?" ),
Notify("Only numbers are allowed", NotificationType.Warning);Reset(txtTotalCost),
Set(
TotalCost,
Value(txtTotalCost.Value)
);