Replace All with Input Field
I need to replace text in string field dynamically based upon another input field in the form. I am trying to do this with the Replace All function but this does not seem to be working.
Here's my sample code:
PropertyOwnerInfo = input.Property_Owner;
BodyText = (BodyText).replaceAll("PROPERTY_OWNER",PropertyOwnerInfo);
input.Body1 = BodyText;
If I use an actually string text in the replace all function (e.g. BodyText = (BodyText).replaceAll("PROPERTY_OWNER","Bob Smith"); it does work.
Is there any way for me to get this to work or any other workaround?