---
description: >-
  Returns a custom message from the message manager. It replaces possibly passed
  parameters in the message. The target language can also be set.
---

# getCustomMessage

## Example Usages

```javascript
let msg = app.getCustomMessage(
  "messageName",
  { param1: "text1", param2: "text2" },
  "en-Us"
);
app.setFieldValue("controlId", msg);
```

### Return Values

This example assumes that the **getCustomMessage** function works as expected, and the returned message is a string that one wants to set as the value of a field with the ID "controlId".
