Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Merge field and variable names into text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 8.5 Yes Yes Yes Yes Yes
MBS( "Text.MergeFields"; Text; Flags )   More


Parameter Description Example value
Text The input text. "Hello <<$name>>"
Flags The various flags.
1 to allow field names.
2 to allow variables.
4 to allow expressions to evaluate.
16 to output XML
32 to output HTML.


Returns OK or error.


Merge field and variable names into text.
This functions look for items between << and >> to replace those with real values from fields, variables or expressions. This function does not preserve formatting.
For use in XML or HTML, we can encode all replacement values for you.

If you allow expressions, that may include plugins calls, so user could do anything via MBS calls!


Use function with Variable:

Set Variable [ $FirstName ; Value: "Christian" ]
Set Variable [ $text ; Value: "Hello <<$FirstName>>" ]
Set Variable [ $text ; Value: MBS( "Text.MergeFields"; $text; 1+2 ) ]
Show Custom Dialog [ $text ]

See also

Example Databases

Blog Entries

FileMaker Magazin

Release notes

Created 14th October 2018, last changed 6th December 2019

Text.LowerCase   -   Text.MimeTypeToFileExtension

Feedback: Report problem or ask question.

MBS FileMaker Plugins