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
- Go to .
- Enter your sandbox with the Page Composer tool active for the appropriate country.
- 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 +Add. . Then in the People to Cover section, click
- On the Settings and Actions menu, click Edit Pages.
- Confirm that the edit page header has Edit Layer: HCMCountry - <Country Code>.
- On the Select tab, complete any required fields.
- Right-click the field you want to customize, such as Date of Birth, and select Edit Component.
- On the Component Properties dialog box, for the appropriate field, such as Required, select Expression Builder.
- On the Expression Editor dialog box, in the Type a value or expression field, enter the appropriate expression, such as #{true}.
- Click OK.
- On the Component Properties dialog box, click Apply.
- Click OK.
- To render your changes, on the page, click Close.
- To verify your changes, on the Sandbox Mode: Edit menu, select Preview as if Published (Context: All).
- To publish your changes, on the <YourSandboxName> menu, select Publish.