Make a Field Required for a Specific Country by Editing the Country Layer

To make changes that apply to everyone in a specific country, you can make country-level customizations. For example, you want to make the Date of Birth field required for anyone in the US adding or editing a contact. For all other countries, the field remains optional. Here's how you can make those changes using a country-specific sandbox.

Before you start

Create a Sandbox and Make It Active. Be sure to follow the steps to set up the sandbox for the appropriate country.

Here's what to do

  1. Go to Navigator > Configuration > Sandboxes.
  2. Enter your sandbox with the Page Composer tool active for the appropriate country.
  3. Go to and open the page where you want to make the country-level change. For example, to change the New Contact page, go to Me > Benefits > Before You Enroll. Then in the People to Cover section, click +Add.
  4. On the Settings and Actions menu, click Edit Pages.
  5. Confirm that the edit page header has Edit Layer: HCMCountry - <Country Code>.
  6. On the Select tab, complete any required fields.
  7. Right-click the field you want to customize, such as Date of Birth, and select Edit Component.
  8. On the Component Properties dialog box, for the appropriate field, such as Required, select Expression Builder.
  9. On the Expression Editor dialog box, in the Type a value or expression field, enter the appropriate expression, such as #{true}.
  10. Click OK.
  11. On the Component Properties dialog box, click Apply.
  12. Click OK.
  13. To render your changes, on the page, click Close.
  14. To verify your changes, on the Sandbox Mode: Edit menu, select Preview as if Published (Context: All).
  15. To publish your changes, on the <YourSandboxName> menu, select Publish.