Skip to main content
Nintex Community Menu Bar

This tutorial describes how to use range and regular expression validation in Nintex Mobile, using a lead generation scenario for validating entries of email addresses and follow-up dates. In this scenario, email addresses are validated for inclusion of the "@" symbol and a period; follow-up dates are validated for occurring within three months of the trade show at which the forms are filled out. The trade show is occurring in August 2016.

 

To achieve this scenario:

  1. Create a SharePoint list called "Leads" and add the following columns: Name, Region, Email, Phone, Followup date.
  2. In Nintex Forms designer, double-click the Single Line Textbox control for Email.
    165963_pastedImage_13.png
  3. In the form control configuration dialog box, expand the Validation section and then select Yes for Use a regular expression.
  4. In the Regular expression field, copy and paste the following expression.
    .+@.+..+
  5. In the Regular expression error message field, copy and paste the following text or enter a similar message.
    Invalid format for email address. Please reenter.
    Example screenshot of validation configuration:
    165962_pastedImage_12.png
  6. Click Save to save changes and close the configuration dialog box.
  7. In Nintex Forms designer, double-click the Date/Time control for Followup date.
    169659_pastedImage_0.png
  8. In the form control configuration dialog box, expand the Validation section and then select Yes for Use range validation.
  9. In the Minimum value field, insert the reference "Current Date."
  10. In the Maximum value field, specify a date occurring several months after the trade show.
    Example: 2017/01/01
  11. In the Range validation error message field, copy and paste the following text or enter a similar message.
    Please enter a date in the future.
    Example screenshot of validation configuration:
    169658_pastedImage_1.png
  12. Click Save to save changes and close the configuration dialog box.
  13. Add the Nintex Mobile layouts and then publish the form.
    Now the form displays errors if users attempt to submit with an email address or followup date not passing validation.
Be the first to reply!

Reply