In the events that the Hire Date cannot be set to mandatory in the form, we can create a workflow to return an error when the Hire Date field is empty and prevent to submit the employee record.
Solution
- Navigate to Customization > Workflow > Workflows > New
- Basic Information:
• Name: Enter Hire Date Validation
• Record Type: Select Employee
• Execute as Admin: Enter Checkmark
• Released Status: Select Released
• Keep Instance and History: Select Always
• Enable Logging: Enter Checkmark - Event Definition:
• On Create: Enter Checkmark
• On View or Update: Enter Checkmark
• Click Save - Click State 1
- Bottom right corner: Click New Action
- Click Return User Error
- Basic Information:
• Trigger On: Select Before Record Submit - Condition:
• Click on the Open button at the right side of the field
• Field: Select Hire Date
• Compare Type: Select Not Empty
• Click Add
• Click Save - Parameters:
• Text: Enter Hire Date should not be empty - Click Save