How to Make Country Code a Required Field in Oracle HCM

1. Requirement:

Ensuring that the Country Code is mandatory when entering phone numbers in Oracle HCM prevents missing or incorrect data.

2. Steps to Make Country Code Required:

  1. Create and activate a Sandbox.
  2. Navigate to Person Management.
  3. Search for an employee and go to Actions → Personal and Employment → Manage Person.
  4. Open Customize Pages from the user menu at the Site Level and switch View to Source.
  5. Click Edit under Communication Accounts.
  6. Scroll to the third popup, select it, and edit it.
  7. Set Child Creation Property to Immediate, then click Apply and OK.
  8. Expand panelGroupLayout: default and select Edit Component.
  9. Locate Country Code (inputComboboxListOfValues) and click Edit.
  10. In the Required Property, open Expression Builder and enter true.
  11. Click OK and switch to Design Mode.
  12. Test the changes by attempting to save a phone number without a country code—an error should appear.
  13. Close Page Composer and validate the personalization.

I hope this blog post was helpful for you. If you have any questions or feedback, please leave a comment below.