Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7900 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a file in which people can store sentences, phrases and paragraphs. I would like to have a system in which they can select a stored paragraph with "xx" and "yy" instead of first name and his/her and have it change, for example, "xx" for first name; "yy" for "his/her" and so on then paste the updated paragraph into another field.

I cannot remember how you make FileMaker search word by word within a text block and replace when it finds and then continues with he search, but I have seen this done.

Any ideas?

Posted

You will want to use nested substitute functions. Make a calculated field cResultText with the formula:

Substitute(Substitute(OriginalTextField,

"xx",FirstName),

"yy",HisHer)

...where FirstName is a field, HisHer is a field, etc. You can nest the substitute functions as deep as necessary for as many fields that you want to insert. But, you may be better off using merge fields if you just want to print these records out as form letters. Have a look at merge fields in the manual.

This topic is 7900 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.