Once you have dragged and dropped an Element onto the Section Elements Manager, you can use the edit function to add and amend the properties of the element.


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 


Navigate to the Validation tab of a Numeric Input Element. For Numeric Validation Rules, you will be able to add or amend the following:

  1. Text for message to be displayed if the validation rule is not met.
  2. Type of validation rule.



Set a Validation Rule 


There are two types of numeric validation rules supported for Smart Forms: 

  1. Custom (Formulas)
  2. Number Range 


Custom


Enter a SQOL-based formula. 


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



Here, the validation formula means that only a number with 4 or 8 digits will be accepted as input. 


Number Range


Set a number range for the numeric field with minimum and maximum values.



Here, the validation rule will only accept a number within the range between 2 and 30.




Enter an Error Message 


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



2. Save your changes.