Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

HTML to formatted text

All examples are included with download of MBS FileMaker Plugin.

HTML to formatted text.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 3
Value Lists 0
Custom Functions 0
Custom Menus 24
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Minimalistisch
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields Off
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Comments
Occurrences in Relationship Graph
RTF Test
2 fields defined, 1 record
RTF Test

Fields

Table Name: RTF Test - 2 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
HTML Input Normal, Text Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      Text Output Normal, Text Auto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

          Layout Objects: RTF Test

          Regular Fields

          Field Name: RTF Test::HTML Input
          Field Properties Coordinates Field Format Field Behavior Quick Find
          • Top: 50 pt
          • Left: 114 pt
          • Bottom: 288 pt
          • Right: 367 pt
          • Anchoring: Left, Top
          Field Format:
          • Edit Box
          Field Behavior:
          • Allow field to be entered: In Find mode, In Browse mode
          • Touch keyboard type: Default for Data Type
          • Go to next field using: Tab key
          Yes

          Field Name: RTF Test::Text Output
          Field Properties Coordinates Field Format Field Behavior Quick Find
          • Top: 51 pt
          • Left: 473 pt
          • Bottom: 289 pt
          • Right: 726 pt
          • Anchoring: Left, Top
          Field Format:
          • Edit Box
          Field Behavior:
          • Allow field to be entered: In Find mode, In Browse mode
          • Touch keyboard type: Default for Data Type
          • Go to next field using: Tab key
          Yes

          Buttons

          Button Properties Coordinates Script/Script Step
            Type:
          • Text: Convert to Styled Text on macOS
          • Top: 7 pt
          • Left: 114 pt
          • Bottom: 43 pt
          • Right: 367 pt
          • Anchoring: Left, Top
          Perform Script [ “Convert to Styled text” ]

          Scripts:


          Button Properties Coordinates Script/Script Step
            Type:
          • Text: Convert to Plain Text
          • Top: 7 pt
          • Left: 473 pt
          • Bottom: 43 pt
          • Right: 726 pt
          • Anchoring: Left, Top
          Perform Script [ “Convert to plain text” ]

          Scripts:


          Web Viewer Controls

          Web Viewer Control Properties Coordinates Web Address
            Additional Properties:
          • Allow interaction with web viewer content
          • Automatically encode URL
          • Top: 51 pt
          • Left: 745 pt
          • Bottom: 288 pt
          • Right: 1018 pt
          • Anchoring: Left and Right, Top
          "data:text/html;charset=utf-8," & RTF Test::HTML Input

          Script Hierarchy

          Convert to plain text
          Convert to Styled text
          Clear

          Next Script: [Convert to Styled text]
          Script Name Convert to plain text
          Run script with full access privileges Off
          Siri Shortcut Visible Off
          Include In Menu Yes
          Layouts that use this script
          Scripts that use this script
            Script Definition
            Script Steps
            Fields used in this script
            Scripts used in this script
              Layouts used in this script
                Tables used in this script
                Table occurrences used by this script
                Custom Functions used by this script
                  Custom menu set used by this script

                    Previous Script: [Convert to plain text] Next Script: [Clear]
                    Script Name Convert to Styled text
                    Run script with full access privileges Off
                    Siri Shortcut Visible Off
                    Include In Menu Yes
                    Layouts that use this script
                    Scripts that use this script
                      Script Definition
                      Script Steps
                      • If [ MBS("IsWindows") or MBS("IsLinux") ]
                      • Show Custom Dialog [ Title: "Mac only"; Message: "This function is only for macOS."; Default Button: “OK”, Commit: “Yes” ]
                      • Else [ ]
                      • Set Variable [ $r; Value:MBS("RichText.ReadHTML"; RTF Test::HTML Input) ]
                      • Set Field [ RTF Test::Text Output; MBS("RichText.FormattedText") ]
                      • Set Variable [ $r; Value:MBS("RichText.Release") ]
                      • End If
                      Fields used in this script
                      Scripts used in this script
                        Layouts used in this script
                          Tables used in this script
                          Table occurrences used by this script
                          Custom Functions used by this script
                            Custom menu set used by this script

                              Previous Script: [Convert to Styled text]
                              Script Name Clear
                              Run script with full access privileges Off
                              Siri Shortcut Visible Off
                              Include In Menu Yes
                              Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • Set Field [ RTF Test::Text Output; "" ]
                                  Fields used in this script
                                  Scripts used in this script
                                    Layouts used in this script
                                      Tables used in this script
                                      Table occurrences used by this script
                                      Custom Functions used by this script
                                        Custom menu set used by this script

                                          Download example: HTML to formatted text

                                          Used functions: