Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  


Merge field and variable names into text.

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


Parameter Description Example
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

Release notes

Example Databases

Blog Entries

FileMaker Magazin

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

Text.LowerCase   -   Text.MimeTypeToFileExtension

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins

Start Chat