Hello @saralanda
In textareas the line breaks are not <br>
tags, they are \n
characters.
So, assuming the fieldname1 is a textarea field, and you want to replace the line breaks with xxx, the correct code in the equation would be:
fieldname1|r.replace(/[\n\r]/g, 'xxx');
However, you don’t need to generate the URL yourself by using the plugin operations. You can use the generateURL operation in the “URL Operations” module:
https://cff.dwbooster.com/documentation#url-module
For example, assuming you want to generate the URL https://www.yourwebsite.com/?param1=<the value of the textarea field>
In this hypothetical case the calculated field equation would be:
generateURL('https://www.yourwebsite.com', {param1:fieldname1|r});
Best regards.