Thank you for reaching out to us regarding your issue with the digits validation rule on our NumericTextBox component.
After reviewing the information, you provided, it appears that the digits validation rule you are trying to use is intended to validate whether the entered values are numbers. However, please note that the NumericTextBox component is designed to only allow numerical values by default and will not allow string characters.
To better assist you, we have created a sample using the TextBox component with the digits validation rule. Please find the sample in the attachment section. This should help you achieve your desired outcome.
rules: { 'age': { required: [true, "Age is required"],digits:true } }, |
Furthermore, we would like to apologize for any confusion caused by our documentation. We will correct the incorrect validation rule of "digits" to "digits" in our documentation and refresh it by the middle of March 2023.
We hope this information helps you to resolve your issue.
Attachment:
quickstart_4cced47e.zip