Improved date field validation
You can optionally enable improved validation for certain date fields in the mobile app. This limits the dates that users can enter.
To enable this functionality, set the UseImprovedDateFieldValidation attribute on the node in the Mobile configuration to True.
If improved validation is enabled, these validations apply to the date fields for work orders:
- The start date cannot be a future date.
- The completed date cannot be a future date.
- The start date cannot be after the completed date.
- The scheduled start date cannot be after the scheduled end date.
These validations apply to the date fields for service requests:
- The incident date cannot be a future date.
- The start date cannot be a future date.
- The start date cannot be after the inspection completed date.
- The start date cannot be after the resolved date.
- The inspection started date cannot be after the inspection completed date.
- The inspection completed date cannot be a future date.
- The inspection completed date cannot be after the resolved date.
- The resolution date cannot be a future date.
These validations apply to the date fields for work order and service request logs:
- The log from date cannot be a future date.
- The log from date cannot be after the log to date.