Replace text functions

Hi all,
I’m trying to learn about the replace text function, and I would appreciate all your tips.
The text comes via a web form, for example:
After submitting the application, John anxiously awaited the pending decision from the admissions office.

I need to replace the name with “The Applicant”. Unfortunately I don’t think it’s working…

I believe in the Text field below you will have to add the string of text you would like to replace the new value in.

2 Likes

Text parser Replace is for regular expressions, but if you’re doing a simple text replacement, you don’t need a separate module for that.

In the module where you need “The Applicant”, you just need to use something like this:
{{replace(“After submitting the application, John anxiously awaited the pending decision from the admissions office.”; “John”; “The Applicant”)}}

Using these examples, you just need to substitute the sentence with the variable that contains the sentence you want to update and replace John with the name variable.

3 Likes

@Donald_Mitchell it worked, thank you!!

3 Likes