Validators are an essential part of building robust and reliable applications. They ensure that the data entered by the user is accurate, complete, and consistent. FlowX.AI provides a set of pre-defined validation rules that can be used to validate various form inputs such as text fields, number fields, email fields, date fields, and more across web, mobile, and desktop applications.
min validator
max validator
minLength
maxLength
required
pattern validator
isSameOrBeforeToday
isSameOrAfterToday
Validator | Text Fields | Number Fields | Email Fields | Date Fields |
---|---|---|---|---|
required | ✅ | ✅ | ✅ | ✅ |
min | ❌ | ✅ | ❌ | ❌ |
max | ❌ | ✅ | ❌ | ❌ |
minLength | ✅ | ❌ | ✅ | ❌ |
maxLength | ✅ | ❌ | ✅ | ❌ |
❌ | ❌ | ✅ | ❌ | |
pattern | ✅ | ❌ | ✅ | ❌ |
isSameOrBeforeToday | ❌ | ❌ | ❌ | ✅ |
isSameOrAfterToday | ❌ | ❌ | ❌ | ✅ |
currentOrLastYear
) that restricts date selection to the current or the previous year:
smallerOrEqualsToNumber
and takes an array of params
as an input.
async
using the UI Designer.null
, indicating that the input is valid. If the input value is greater than the maximum loan amount value, the function returns a validation error object with a key smallerOrEqualsToNumber
and a value of true, indicating that the input is invalid.
s