Mark Fields as Required or Not Required

Recruiting Guide

Version
R2025.2.1
ft:lastPublication
2025-11-10T21:21:33.526025
Mark Fields as Required or Not Required

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:

Error in workflow message.

To mark a field as required or not required, do the following in the XML code:

  1. Change the value in the <MarkAsRequired></MarkAsRequired> tag of the label to false or true:
  2. Highlighted true value in the MarkAsRequired tag.
  3. 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.
  4. Change the value in the <IsRequired></IsRequired> element of the field to false or true:
  5. Highlighted true value in the IsRequired tag.
  6. 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.