Available in: Axsy Mobile for Salesforce, Axsy Field Service, Axsy Public Sector, Axsy Retail Execution


Once you have added an Element to the Smart Form Designer, you can use the edit function to manage the properties of the Element, including its validation rules.


For more information on how to edit an Element, please see this article: How to Edit Elements - General



Navigate to the Validation Tab of the Edit Window

  1. Once you have opened up the Edit Properties window for a Text Element, select the Validation tab at the top of the window.


  2. For text validation rules, you will be able to set the following:
    • Text for message to be displayed if the validation rule is not met.
    • Type of validation rule.



Set a Validation Rule

There are three types of validation rules supported for Text Elements: 

  1. Text Length
  2. Alphanumeric Only
  3. Custom (Formulas)



Text Length

This validation rule type allows you to set a minimum and maximum length of characters for the text input by entering numeric values.




Alphanumeric Only

Only letters or numbers for input (spaces not included) are accepted.




Custom

Enter a Salesforce-style formula. When bad syntax is used in a formula, an error message will appear under the formula box in red indicating where the syntax needs to be fixed. You can still save the bad syntax but make sure you correct it before publishing!



In the above screenshot example, the validation formula means that only input for the Text Element that is 10 characters or 15 characters long will be accepted.



Create an Error Message

To display a relevant error message in the Axsy Mobile App, enter into the Error Message field the text to display when conditions of the validation rule are not met