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:
- Create and activate a Sandbox.
- Navigate to Person Management.
- Search for an employee and go to Actions → Personal and Employment → Manage Person.
- Open Customize Pages from the user menu at the Site Level and switch View to Source.
- Click Edit under Communication Accounts.
- Scroll to the third popup, select it, and edit it.
- Set Child Creation Property to Immediate, then click Apply and OK.
- Expand panelGroupLayout: default and select Edit Component.
- Locate Country Code (inputComboboxListOfValues) and click Edit.
- In the Required Property, open Expression Builder and enter true.
- Click OK and switch to Design Mode.
- Test the changes by attempting to save a phone number without a country code—an error should appear.
- 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.