You can define whether certain fields are required or not in custom candidate hire forms. For example, the Pay Policy field isn’t required by default in the system candidate hire form. However, an organization that wants to make sure that a policy is defined can make the field mandatory in the custom form.
Important: The following fields are required for hiring an employee and shouldn't be made optional.
- First Name
- Last Name
- SIN/SSN
- Birth Date
- Location
- Job Assignment
- Status
- Pay Type
- Pay Class
For example, if the Status field is made optional and a user doesn't fill it out, the workflow will fail to process after the form is submitted and approved, and an error is displayed:
To mark a field as required or not required, do the following in the XML code:
- Change the value in the <MarkAsRequired></MarkAsRequired> tag of the label to false or true:
-
- If true, a red asterisk is displayed next to the header in the form (to indicate that the field is mandatory). If false, the red asterisk isn’t displayed.
- Change the value in the <IsRequired></IsRequired> element of the field to false or true:
-
- If true, a validation error is displayed when users try to submit without filling out the field. If false, the form can be submitted without filling out the field.