Category Archives: Nintex Forms

Show and Hide Group Controls Using a Choice – Multiple Field in a Nintex Workflow Cloud (NWC) Form

In this video, I show you how to show and hide Group controls using a Choice – Multiple control in a Nintex Workflow Cloud (NWC) form. As part of this solution, I will also show you how to configure Form Rules to accomplish this dynamic functionality.

Show and Hide Group Controls Using a Choice – Multiple Field in a Nintex Workflow Cloud (NWC) Form

Show and Hide a Group Control Using a Checkbox in a Nintex Workflow Cloud (NWC) Form

In this video, I walk you through you how to show and hide a Group control using a Checkbox control in a Nintex Workflow Cloud (NWC) form. As part of this solution, I will also show you how to configure a Form Rule to accomplish this dynamic functionality.

How To Restrict Numeric Data Entered to a Certain Number of Digits in a Nintex Workflow Cloud Form (NWC)

You can easily configure a form field to only accept a certain number of digits as input. This configuration also will not allow text or special characters to be entered in the form field. This post will show you how configure this in a Nintex Workflow Cloud form. This solution can be useful to validate data like Account Numbers, Employee IDs, Invoice Numbers, and many other examples.

Follow these steps to build out this functionality:

  1. Add a Text – Short control to the form.
  2. Select “Regular expression” in the Input Validation setting drop-down menu.
  3. Enter the desired regular expression string in the Pattern field. Below are examples:
Restrict Number of Digits Entered to:Pattern:
5 digit number^(\d{5})$
7 or 8 digit number^(\d{7}|\d{8})$
9, 10, or 12 digit number^(\d{9}|\d{10}|\d{12})$
  1. Feel free to enter a message in the “Custom Regular expression message” field.
    1. This message displays if the data entered is not the correct number of digits.
    2. You can use this message as an instruction to the form user to correct the data.
  2. Test out this functionality by going to the Preview tab and adding data to the form field you configured.
    1. If you enter fewer or more digits than the pattern, the field is marked as invalid and the “Custom Regular expression message” appears under the field.
    2. If you enter text or special characters, the field will also be marked as invalid and the “Custom Regular expression message” appears under the field.
NWC Form Restrict Data Entered to Certain Number of Digits

Set Up Age Verification on a Date/Time Control in a Nintex Workflow Cloud Form (NWC)

In this scenario, we need to verify that a user is older than a certain age (i.e. 18 or 21) based upon a date of birth entered in a Date/Time form field. This can be accomplished by creating a Submit Rule to validate the date field.

Follow these steps to build out this functionality:

  1. Add and configure a Date/Time control on the form:
    1. Enter a name like “Date of Birth”.
    2. Make sure the “Restrict past dates” toggle is set to No.
    3. You can also add a Description or Tooltip with a message like “You must be over 18 years old”.
  2. Configure a Submit Rule on the form:
    1. Go to the Rules tab.
    2. Click on the “Add submit rule” button in the Submit Rules section.
    3. Enter a descriptive Name for the rule like “Verify Date of Birth Over 18”.
    4. Configure the If statement.
      1. Click on the blue Insert button on the first drop-down field.
      2. Configure the Formula field.
        1. Find and insert the dateDiff() function from the Functions tab of the Lookup section.
        2. Enter “TotalYears” as the first parameter (make sure to include the quotation marks).
        3. Find and insert the “Date of Birth” form control as the second parameter.
        4. Find and insert the dateNow() function as the third parameter.
        5. The Formula should now be configured as (see the image below):

          dateDiff(“TotalYears”,[Form].[Date of Birth],dateNow())


        6. Click the Insert button to save the Submit Rules.
      3. Select “Less than” from the second drop down field.
      4. Enter the age (18 or 21) that the user needs to be older than.
    5. Configure the Then statement.
      1. Select “Date of Birth” from the first drop-down field.
      2. Select “Show Validation Error” from the second drop-down field.
      3. Enter a message like “You must be older than 18 years old” in the third field.
    6. The Submit Rule should now look like the image below:


    7. Click the “Create rule” button to save and activate the Submit Rule.
  3. Test out your rule by going to the Preview tab, selecting a Date of Birth, and clicking the Submit button.
    1. If the user is under 18, the field will be marked as invalid and the validation message will appear.
    2. When the user is over 18, then the field is valid and the form can be submitted.

You can find out more about the Nintex Workflow Cloud functionality used in this blog:

Date/Time form control: https://help.nintex.com/en-US/nwc/Content/Designer/FormControls/DateTime.htm

Rules: https://help.nintex.com/en-US/nwc/Content/Designer/FormsRules.htm