---
title: "SUBSTITUTE"
url: "https://help.formsfly.com/en/article/substitute"
language: "en"
last_updated: "2024-10-29T17:19:49.433Z"
---

# SUBSTITUTE

Substitute’s new_text for old_text into the given value.

### Syntax

`SUBSTITUTE(val, old_text, new_text)`

### Example

If *myfield* has value 'ABC|DEF', then:

```plaintext
   SUBSTITUTE({{myfield}}, '|', '\n') replaces | with new line
```

returns:

`ABC`  
`DEF`
