---
description: Replaces a text with the current values of the app.
---

# replaceText

## Parameters

1. text - the text with parameters
2. additionalReplacings - json object with key value pairs

## Example Usages

This example uses the controls of the app to replace the values.

```javascript
let newText = app.replaceText("Hello @id");
```

This example uses the controls of the app to replace the values. Here, @id serves as a placeholder and will be replaced with the corresponding value.

```javascript
let newText = app.replaceText("Hello @myCustomParam", {
  myCustomParam: "world",
});
```

### Return Values

The function returns a modified string after replacing the placeholders.
