Intl Phone Number Component

The Intl (International) Phone Number component is a Centauri (v1.0) specialized input component for use with international phone numbers.

You'll see many similarities when comparing it to the Phone Number component, but the critical features include the following:

You'll find the Intl Phone Number component under the Secondary Fields group to the left of the Module Builder.

To learn more about general component settings, view our General Component Settings article.

Field Text

A static image displaying the Intl Phone Number component's Display settings.

Setting

Description

Label Text

Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field.

User-friendly labels make your module more accessible. Keep labels short and descriptive (a word or two) using title case. For longer entries, use sentence case.

Default State Options

Setting

Description

Hide Label

Setting Hide Label to  (ON) hides Label Text from displaying in Express View. Your Label Text still displays in the Module Builder.

By default, this setting is set to (OFF).

Hide Field

Displays or hides the component from view. Setting Hide Field to  (ON) hides the component in Express View. Setting it to (OFF) displays the component. The component is always visible in the Module Builder.

By default, Hide Field is set to (OFF).

Formatting

Setting

Description

Input Behavior

Controls how end-users interact with the component. Choose from the following options:

  • Enable User Input: Allow end-users to view and enter data in this field.

  • Disable User Input: Prevents end-users from entering data in the field, but lets them view it. In the Module Builder, the field’s background displays as gray. In Express View, when end-users hover over the field, their cursor displays with a prohibited symbol.

  • Read Only - Legacy: Prevents end-users from entering data and replaces the field with the component’s data value. If no value is provided, the component displays None.

  • Read Only - Accessible: Makes the field non-editable and applies the readonly HTML attribute, which notifies screen readers that the field cannot be modified.

Hide Country Option

When set to  (ON), end-users cannot select their phone number's country of origin. Instead, their number validates based on the Default Country setting. If set to (OFF), a new field displays to the left of the Intl Phone Number component field in Express View. Here, the end-user can select their phone number's country of origin.

By default, the Hide Country Option is set to  (ON).

Phone Number Types

Sets the specific phone line type (mobile, fixed line, or both) for validation.

  • All: Validation of both landline and mobile phone numbers.

  • Fixed Line: Validation of landline phone numbers only.

  • Mobile: Validation of mobile phone numbers only.

Default Country

Different countries use different phone number formats and standards. Your end-user's input validates and formats based on the country you select from this drop-down.

Let's configure an Intl Phone Number component to accept phone numbers from Spain. These instructions assume that you have an open module saved with a title.

1. In the Module Builder, drag and drop an Intl Phone Number component onto your canvas.
2. In the Property ID field, enter intlPhone.
3. In the Label Text field, enter Phone Number.
4. From the Default Country drop-down, enter or select Spain.

A static image displaying the Property ID, Label Text, and Default Country configuration.

5. Click Save Component.
6. Save your module.

Preview your module in Express View and enter a phone number. Notice how the component formats the number in the specified Spain format.

You do not need to enter the country code at the beginning of the number. The component already knows the country code based on the Default Country drop-down selection. If you do enter the country code manually, the component deletes it once you've entered the full number.

For this example, the Validate Phone Number is set to (OFF) to test the configuration without having to enter a valid phone number. With this setting set to  (ON), this example phone number is invalid.

Let's configure an Intl Phone Number component to accept phone numbers from Spain. These instructions assume that you have an open module saved with a title.

1. In the Module Builder, drag and drop an Intl Phone Number component onto your canvas.
2. In the Property ID field, enter intlPhone.
3. In the Label Text field, enter Phone Number.
4. From the Default Country drop-down, select Spain.

A static image displaying the Property ID, Label Text, and Default Country configuration.

5. Click Save & Close.
6. Save your module.

Preview your module in Express View and enter a phone number. Notice how the component formats the number in the specified Spain format.

You do not need to enter the country code at the beginning of the number. The component already knows the country code based on the Default Country drop-down selection. If you do enter the country code manually, the component deletes it once you've entered the full number.

For this example, the Validate Phone Number was set to (OFF) to test the configuration without having to enter a valid phone number. With this setting set to  (ON), this example phone number would be invalid.