Allow Only Numeric Value Input in a Nintex Automation Cloud (NAC) Form

Validating data in a form is a crucial part of data collection in an automation process. You can configure a text field on a form to only accept numeric values as input. This configuration also will not allow text (alphabetic) or special characters to be entered in the form field. This post will show you how to configure this functionality in a Nintex Automation Cloud (NAC) form. This solution can be useful to validate data like Account Numbers, Zip Codes, Bar Codes, and many other examples.

Follow these steps to build out this functionality:

  1. Add a “Text – Short” control to the form.
  2. Configure the new “Text – Short” control you just added.
    • Title = Account Number (or whatever you would like)
    • Input Validation = Regular expression
    • Pattern = ^[0-9]+$
    • Custom Regular expression message = “This field only accepts numeric input.”
      • This message displays if the data entered is not numeric.
      • You can use this message as an instruction to the form user to correct the data.
  3. Test out this functionality by going to the Preview tab and adding data to the form field you configured.
    • If you enter any alphabetic text and/or special characters as input, the field is marked as invalid and the “Custom Regular expression message” appears under the field.

Leave a comment

Website Powered by WordPress.com.

Up ↑