> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/replacetext.md).

# replaceText

Replaces a text with the current values of the app.

### 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 = brixxApi.replaceText("Hello @id");
```

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

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