The MandatoryFields class holds the values of Classes/Properties pairs that will be validated using Cloud Code to ensure only the correct data will be stored.
class | comments | field | isMandatory | maxLength | minLength | regexValidation |
---|---|---|---|---|---|---|
User | (undefined) | username | False | 999 | 5 | (undefined) |
User | Fromat a valid email | email | False | 999 | 5 | ^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$ |
User | (undefined) | name | False | 999 | 2 | (undefined) |
User | (undefined) | lastName | False | 999 | 5 | (undefined) |
User | Format XXXX-XXXX and XXXXX-XXXX | phoneNumber | False | 9 | 8 | ^(\\d{4,5})-(\\d{4})$ |
User | (undefined) | location | False | 999 | 0 | (undefined) |
User | (undefined) | picture | False | 999 | 0 | (undefined) |
User | (undefined) | gender | False | 999 | 0 | (undefined) |
User | Format DD-MM-YYYY and DD/MM/YYYY. A date such as 30/30/9999 would be possible. | birthDate | False | 10 | 8 | ^(0?[1-9]|[12][0-9]|3[01])[\\/\\-](0?[1-9]|1[012])[\\/\\-]\\d{4}$ |
User | (undefined) | age | False | 3 | 1 | (undefined) |
User | (undefined) | country | False | 50 | 2 | (undefined) |
User | (undefined) | city | False | 50 | 2 | (undefined) |
User | (undefined) | district | False | 50 | 2 | (undefined) |
User | (undefined) | address | False | 999 | 2 | (undefined) |
User | Format XXXX-XXX | zipCode | False | 9 | 9 | ^[0-9]{5}(?:-[0-9]{3})?$ |
User | Format a valid URL | website | False | 999 | 3 | (http|https):\\/\\/(\\w+:{0,1}\\w*)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%!\\-\\/]))? |
Gender | (undefined) | code | True | 1 | 1 | (undefined) |
Gender | (undefined) | gender | False | 99 | 1 | (undefined) |
The following information about the MandatoryFields class of your application:
MandatoryFields The MandatoryFields class holds the values of Classes/Properties pairs that will be validated using Cloud Code to ensure only the correct data will be stored. It contains the following properties:
Here is a quick example of how this class will look like: