Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Text.MergeFields
Merge field and variable names into text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Text.MergeFields"; Text; Flags ) More
Parameters
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. |
1+2+4+32 |
Result
Returns OK or error.
Description
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!
Examples
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
- Version 9.0
- Fixed problem with Text.MergeFields not finding variable always.
- Version 8.5
- Added Text.MergeFields function.
Example Databases
Blog Entries
- Combined Components with MBS FileMaker Plugin
- MBS FileMaker Plugin, version 8.6pr5
- Neues MBS FileMaker Plugin 8.5 - Über 5500 Funktionen in einem Plugin
- MBS FileMaker Plugin 8.5 - More than 5500 Functions In One Plugin
- Merge field values into text
- MBS FileMaker Plugin, version 8.5pr3
FileMaker Magazin
This function checks for a license.
Created 14th October 2018, last changed 6th December 2019