Previous Next JavaScript must be enabled to correctly display this content

## 22.6.4.2 Creating Text Messages

Create text messages by selecting the application and navigating to Shared Components, Globalization, Text Messages.

To create a text message:

1. Navigate to the Text Messages page:
   1. On the Workspace home page, click the App Builder icon.
   2. Select an application.
   3. Click Shared Components.
   4. Under Globalization, click Text Messages.
2. On the Translate Messages page, click Create Text Message.
3. On Create/Edit Text Message:
   1. Static ID - Enter a unique Static ID to identify this component in API calls or refer to it in application export files. If you change the Static ID, dependent components will retain their references, but any existing API calls using the old ID must be updated manually.
   2. Language - Select the language for which the message will be used.
   3. Used in JavaScript - Enable this flag if the message is used in `APEX.LANG.*` API calls in JavaScript code.
   4. Text - Enter the text to be returned when the text message is called.

      Text Messages support named substitution values. Named substitution values must be unique within the message. Named substitution values can contain any characters except whitespace and "`=`". For example:

      `ACCOUNT_MSG Hello %name, your balance is %balance.`

      Text messages can contain either named or positional substitution values (for example,`%name, %amount,` or `%0,%1`), ensure that your defined message also contains the same named and number of positional substitution values.

      For example, you could define the message `GREETING_MSG` in English as:

      `Good morning %name`

      Or, you could define the message `GREETING_MSG` in German as:

      `Guten Tag %name`

   5. Comment - Enter any developer comments or notes here. These comments only display within App Builder and never display when running the application.
4. Click Create And Create Another or Create Text Message.

Parent topic: Managing Text Messages