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

MBS FileMaker Plugin Example Databases

Forms Sample

All examples are included with download of MBS FileMaker Plugin.

Forms Sample.fmp12

Overview
Tables1
Relationships0
Layouts2
Scripts20
Value Lists0
Custom Functions0
Custom Menus31
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutStart
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenScript: Startup
OnLastWindowCloseScript: Shut Down
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
WebViewer_Forms
4 fields defined, 2 records
WebViewer_Forms

Fields

Table Name: WebViewer_Forms - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ResultNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: English
      addressNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: English
          cityNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: English
                name_autoenterNormal, TextAuto-Enter: Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: English

                    Layout Objects: Start

                    Regular Fields

                    Field Name: WebViewer_Forms::name_autoenter
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 152 pt
                    • Left: 210 pt
                    • Bottom: 173 pt
                    • Right: 361 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: WebViewer_Forms::Result
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 223 pt
                    • Left: 210 pt
                    • Bottom: 244 pt
                    • Right: 361 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: WebViewer_Forms::address
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 372 pt
                    • Left: 173 pt
                    • Bottom: 412 pt
                    • Right: 386 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: WebViewer_Forms::Result
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 464 pt
                    • Left: 173 pt
                    • Bottom: 504 pt
                    • Right: 386 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: WebViewer_Forms::Result
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 387 pt
                    • Left: 163 pt
                    • Bottom: 408 pt
                    • Right: 231 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: WebViewer_Forms::Result
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 313 pt
                    • Left: 421 pt
                    • Bottom: 330 pt
                    • Right: 476 pt
                    • Anchoring: Left, Top
                    Field Format:
                    • Edit Box
                    Field Behavior:
                    • Allow field to be entered: In Find mode, In Browse mode
                    • Touch keyboard type: System Default
                    • Go to next field using: Tab key
                    Yes

                    Field Name: WebViewer_Forms::Result
                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                    • Top: 299 pt
                    • Left: 2052 pt
                    • Bottom: 316 pt
                    • Right: 2107 pt
                    • Anchoring: Left, Top
                    Field Format:
                    • Edit Box
                    Field Behavior:
                    • Allow field to be entered: In Find mode, In Browse mode
                    • Touch keyboard type: System Default
                    • Go to next field using: Tab key
                    Yes

                    Merge Fields

                    Field PropertiesCoordinatesFieldsQuick Find
                    • Top: 179 pt
                    • Left: 48 pt
                    • Bottom: 209 pt
                    • Right: 468 pt
                    • Anchoring: Left, Top
                      No

                      Field PropertiesCoordinatesFieldsQuick Find
                      • Top: 416 pt
                      • Left: 50 pt
                      • Bottom: 446 pt
                      • Right: 470 pt
                      • Anchoring: Left, Top
                        No

                        Group Buttons

                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 150 pt
                        • Left: 407 pt
                        • Bottom: 175 pt
                        • Right: 468 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set Field” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 373 pt
                        • Left: 409 pt
                        • Bottom: 398 pt
                        • Right: 470 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set Area” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 219 pt
                        • Left: 407 pt
                        • Bottom: 244 pt
                        • Right: 468 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Get Field” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 460 pt
                        • Left: 409 pt
                        • Bottom: 485 pt
                        • Right: 470 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Get Area” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 187 pt
                        • Left: 415 pt
                        • Bottom: 212 pt
                        • Right: 476 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set Checkbox” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 381 pt
                        • Left: 415 pt
                        • Bottom: 406 pt
                        • Right: 476 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Get Checkbox” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 291 pt
                        • Left: 408 pt
                        • Bottom: 316 pt
                        • Right: 469 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set Second Radio Button” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 453 pt
                        • Left: 411 pt
                        • Bottom: 478 pt
                        • Right: 472 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set First Radio Button” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 356 pt
                        • Left: 413 pt
                        • Bottom: 381 pt
                        • Right: 474 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set first radio button” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 416 pt
                        • Left: 413 pt
                        • Bottom: 441 pt
                        • Right: 474 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set first Second button” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 512 pt
                        • Left: 413 pt
                        • Bottom: 537 pt
                        • Right: 474 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Set first First Radio Button, By name” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 284 pt
                        • Left: 418 pt
                        • Bottom: 309 pt
                        • Right: 479 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Get the Value of a Radio Button” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 365 pt
                        • Left: 398 pt
                        • Bottom: 390 pt
                        • Right: 459 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Select the Second Menu option” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 335 pt
                        • Left: 398 pt
                        • Bottom: 360 pt
                        • Right: 459 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Select the First Menu option” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 276 pt
                        • Left: 399 pt
                        • Bottom: 301 pt
                        • Right: 460 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Select the Second List option” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 246 pt
                        • Left: 399 pt
                        • Bottom: 271 pt
                        • Right: 460 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Select the First List Option” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 494 pt
                        • Left: 403 pt
                        • Bottom: 519 pt
                        • Right: 464 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Select the Second List option without Form Name” ]

                        Scripts:


                        Button PropertiesCoordinatesScript/Script Step
                          Type:
                        • Text: Try It
                          Additional Properties:
                        • Change to hand cursor over button
                        • Rounded
                        • Top: 270 pt
                        • Left: 2049 pt
                        • Bottom: 295 pt
                        • Right: 2110 pt
                        • Anchoring: Left, Top
                        Perform Script [ “Get the Value of a Radio Button” ]

                        Scripts:


                        Tab Controls

                        Tab Control PropertiesCoordinates
                          Justification:
                        • Left
                          Tab Width:
                        • Label Width + Margin of 6 pt
                          Default Front Tab:
                        • Tab 0
                        • Top: 71 pt
                        • Left: 12 pt
                        • Bottom: 596 pt
                        • Right: 523 pt
                        • Anchoring: Left, Top
                        Tabs
                        Tab PropertiesTab ControlsSlide ControlsFieldsButtonsPortalsWeb Viewer ControlsCharts
                          Tab 0:
                        • "Intro"
                              Tab 1:
                            • "Text Field / Area "
                                Field ObjectsMerge Field Objects
                              • Text: Try It-->Perform Script [ “Set Field” ] at (150, 407, 175, 468)
                              • Text: Try It-->Perform Script [ “Set Area” ] at (373, 409, 398, 470)
                              • Text: Try It-->Perform Script [ “Get Field” ] at (219, 407, 244, 468)
                              • Text: Try It-->Perform Script [ “Get Area” ] at (460, 409, 485, 470)
                                • Tab 2:
                                • "Checkbox"
                                    Field Objects
                                  • Text: Try It-->Perform Script [ “Set Checkbox” ] at (187, 415, 212, 476)
                                  • Text: Try It-->Perform Script [ “Get Checkbox” ] at (381, 415, 406, 476)
                                    • Tab 3:
                                    • "Radio Buttons"
                                      Field Objects
                                        Tab 4:
                                      • "Menus / Lists"
                                        • Text: Try It-->Perform Script [ “Select the Second Menu option” ] at (365, 398, 390, 459)
                                        • Text: Try It-->Perform Script [ “Select the First Menu option” ] at (335, 398, 360, 459)
                                        • Text: Try It-->Perform Script [ “Select the Second List option” ] at (276, 399, 301, 460)
                                        • Text: Try It-->Perform Script [ “Select the First List Option” ] at (246, 399, 271, 460)
                                        • Text: Try It-->Perform Script [ “Select the Second List option without Form Name” ] at (494, 403, 519, 464)

                                        • Tab Control PropertiesCoordinates
                                            Justification:
                                          • Full
                                            Tab Width:
                                          • Label Width
                                            Default Front Tab:
                                          • Tab 0
                                          • Top: 103 pt
                                          • Left: 16 pt
                                          • Bottom: 590 pt
                                          • Right: 515 pt
                                          • Anchoring: Left, Top
                                          Tabs
                                          Tab PropertiesTab ControlsSlide ControlsFieldsButtonsPortalsWeb Viewer ControlsCharts
                                            Tab 0:
                                          • "Setting Radio Button Values"
                                              Tab 1:
                                            • "Getting Radio Button Values"
                                              Field Objects

                                              Tab Control PropertiesCoordinates
                                                Justification:
                                              • Left
                                                Tab Width:
                                              • Label Width
                                                Default Front Tab:
                                              • Tab 0
                                              • Top: 133 pt
                                              • Left: 17 pt
                                              • Bottom: 590 pt
                                              • Right: 514 pt
                                              • Anchoring: Left, Top
                                              Tabs
                                              Tab PropertiesTab ControlsSlide ControlsFieldsButtonsPortalsWeb Viewer ControlsCharts
                                                Tab 0:
                                              • "Using Simple Functions"
                                                • Text: Try It-->Perform Script [ “Set Second Radio Button” ] at (291, 408, 316, 469)
                                                • Text: Try It-->Perform Script [ “Set First Radio Button” ] at (453, 411, 478, 472)
                                                  • Tab 1:
                                                  • "Using JavaScript"
                                                    • Text: Try It-->Perform Script [ “Set first radio button” ] at (356, 413, 381, 474)
                                                    • Text: Try It-->Perform Script [ “Set first Second button” ] at (416, 413, 441, 474)
                                                    • Text: Try It-->Perform Script [ “Set first First Radio Button, By name” ] at (512, 413, 537, 474)

                                                    • Tab Control PropertiesCoordinates
                                                        Justification:
                                                      • Left
                                                        Tab Width:
                                                      • Label Width
                                                        Default Front Tab:
                                                      • Tab 0
                                                      • Top: 132 pt
                                                      • Left: 18 pt
                                                      • Bottom: 589 pt
                                                      • Right: 515 pt
                                                      • Anchoring: Left, Top
                                                      Tabs
                                                      Tab PropertiesTab ControlsSlide ControlsFieldsButtonsPortalsWeb Viewer ControlsCharts
                                                        Tab 0:
                                                      • "Using JavaScript"
                                                          Field Objects
                                                        • Text: Try It-->Perform Script [ “Get the Value of a Radio Button” ] at (284, 418, 309, 479)

                                                        • Web Viewer Controls

                                                          Web Viewer Control PropertiesCoordinatesWeb Address
                                                            Object Name:
                                                          • MyWebViewer
                                                            Additional Properties:
                                                          • Allow interaction with web viewer content
                                                          • Automatically encode URL
                                                          • Top: 96 pt
                                                          • Left: 528 pt
                                                          • Bottom: 597 pt
                                                          • Right: 793 pt
                                                          • Anchoring: Left, Top
                                                          "http://www.monkeybreadsoftware.com/filemaker/examples/more_form.html"

                                                          Layout Objects: Splash

                                                          Script Hierarchy

                                                          Startup
                                                          Shut Down
                                                          Field/Area
                                                          Set Field
                                                          Get Field
                                                          Set Area
                                                          Get Area
                                                          Checkbox
                                                          Set Checkbox
                                                          Get Checkbox
                                                          Radio Buttons
                                                          Simple MBS Functions
                                                          Set First Radio Button
                                                          Set Second Radio Button
                                                          Set Menu Check
                                                          Javascript
                                                          Set first radio button
                                                          Set first Second button
                                                          Set first First Radio Button, By name
                                                          Get the Value of a Radio Button
                                                          Menu/List
                                                          Select the First Menu option
                                                          Select the Second Menu option
                                                          Select the First List Option
                                                          Select the Second List option
                                                          Select the Second List option without Form Name

                                                          Next Script: [Shut Down]
                                                          Script NameStartup
                                                          Run script with full access privilegesOff
                                                          Include In MenuNo
                                                          Layouts that use this script
                                                            Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              • Go to Layout [ "Start" ]
                                                              • Freeze Window
                                                              • Set Field [ WebViewer_Forms::Result; "Todd Geist" ]
                                                              • Set Field [ WebViewer_Forms::address; "<edit me>¶1445 E Los Angeles Ave,STE 301R" ]
                                                              • Set Field [ WebViewer_Forms::city; "Simi Valley" ]
                                                              • Set Field [ WebViewer_Forms::name_autoenter; "<edit me>" ]
                                                              • Commit Records/Requests
                                                              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: [Startup]
                                                                      Script NameShut Down
                                                                      Run script with full access privilegesOff
                                                                      Include In MenuNo
                                                                      Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • Go to Layout [ “Splash” ]
                                                                          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

                                                                                      Field/Area

                                                                                      Parent Folder: [Field/Area]Next Script: [Get Field]
                                                                                      Script NameSet Field
                                                                                      Run script with full access privilegesOff
                                                                                      Include In MenuYes
                                                                                      Layouts that use this script
                                                                                      Scripts that use this script
                                                                                        Script Definition
                                                                                        Script Steps
                                                                                        • Set Variable [ $result; Value:MBS( "WebView.SetFormInputValue" ; "MyWebViewer"; "MyForm"; "textField"; WebViewer_Forms::name_autoenter ) ]
                                                                                        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: [Set Field]Parent Folder: [Field/Area]Next Script: [Set Area]
                                                                                                Script NameGet Field
                                                                                                Run script with full access privilegesOff
                                                                                                Include In MenuYes
                                                                                                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: [Get Field]Parent Folder: [Field/Area]Next Script: [Get Area]
                                                                                                          Script NameSet Area
                                                                                                          Run script with full access privilegesOff
                                                                                                          Include In MenuYes
                                                                                                          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: [Set Area]Parent Folder: [Field/Area]
                                                                                                                    Script NameGet Area
                                                                                                                    Run script with full access privilegesOff
                                                                                                                    Include In MenuYes
                                                                                                                    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

                                                                                                                              Checkbox

                                                                                                                              Parent Folder: [Checkbox]Next Script: [Get Checkbox]
                                                                                                                              Script NameSet Checkbox
                                                                                                                              Run script with full access privilegesOff
                                                                                                                              Include In MenuNo
                                                                                                                              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: [Set Checkbox]Parent Folder: [Checkbox]
                                                                                                                                              Script NameGet Checkbox
                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                              Include In MenuNo
                                                                                                                                              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

                                                                                                                                                        Radio Buttons

                                                                                                                                                        Simple MBS Functions

                                                                                                                                                        Parent Folder: [Simple MBS Functions]Next Script: [Set Second Radio Button]
                                                                                                                                                        Script NameSet First Radio Button
                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                        Include In MenuYes
                                                                                                                                                        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: [Set First Radio Button]Parent Folder: [Simple MBS Functions]Next Script: [Set Menu Check]
                                                                                                                                                                        Script NameSet Second Radio Button
                                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                                        Include In MenuYes
                                                                                                                                                                        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: [Set Second Radio Button]Parent Folder: [Simple MBS Functions]
                                                                                                                                                                                        Script NameSet Menu Check
                                                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                                                        Include In MenuYes
                                                                                                                                                                                        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

                                                                                                                                                                                                          Javascript

                                                                                                                                                                                                          Parent Folder: [Javascript]Next Script: [Set first Second button]
                                                                                                                                                                                                          Script NameSet first radio button
                                                                                                                                                                                                          Run script with full access privilegesOff
                                                                                                                                                                                                          Include In MenuNo
                                                                                                                                                                                                          Layouts that use this script
                                                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                                                            Script Definition
                                                                                                                                                                                                            Script Steps
                                                                                                                                                                                                            • Set Variable [ $result; Value:Let( [ WebViewerName = "MyWebViewer"; JavaScript= "document.MyForm.RadioGroup[0].checked = 'true'" ]; MBS("WebView.RunJavaScript";WebViewerName ; JavaScript) ) ]
                                                                                                                                                                                                            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: [Set first radio button]Parent Folder: [Javascript]Next Script: [Set first First Radio Button, By name]
                                                                                                                                                                                                                          Script NameSet first Second button
                                                                                                                                                                                                                          Run script with full access privilegesOff
                                                                                                                                                                                                                          Include In MenuNo
                                                                                                                                                                                                                          Layouts that use this script
                                                                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                                                                            Script Definition
                                                                                                                                                                                                                            Script Steps
                                                                                                                                                                                                                            • Set Variable [ $result; Value:Let( [ WebViewerName = "MyWebViewer"; JavaScript= "document.MyForm.RadioGroup[1].checked = 'true'" ]; MBS("WebView.RunJavaScript";WebViewerName ; JavaScript) ) ]
                                                                                                                                                                                                                            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: [Set first Second button]Parent Folder: [Javascript]Next Script: [Get the Value of a Radio Button]
                                                                                                                                                                                                                                          Script NameSet first First Radio Button, By name
                                                                                                                                                                                                                                          Run script with full access privilegesOff
                                                                                                                                                                                                                                          Include In MenuNo
                                                                                                                                                                                                                                          Layouts that use this script
                                                                                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                                                                                            Script Definition
                                                                                                                                                                                                                                            Script Steps
                                                                                                                                                                                                                                            • Set Variable [ $result; Value:Let( [ WebViewerName = "MyWebViewer"; javaScript = "x = document.getElementsByName('RadioGroup'); x[0].checked = 'true' " ]; MBS("WebView.RunJavaScript";WebViewerName ; JavaScript) ) ]
                                                                                                                                                                                                                                            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: [Set first First Radio Button, By name]Parent Folder: [Javascript]
                                                                                                                                                                                                                                                          Script NameGet the Value of a Radio Button
                                                                                                                                                                                                                                                          Run script with full access privilegesOff
                                                                                                                                                                                                                                                          Include In MenuNo
                                                                                                                                                                                                                                                          Layouts that use this script
                                                                                                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                                                                                                            Script Definition
                                                                                                                                                                                                                                                            Script Steps
                                                                                                                                                                                                                                                            • Set Field [ WebViewer_Forms::Result; Let( [ // ------- setup the WebViewer ----------- webViewerName = "MyWebViewer"; // ---------set the javascript------------- javaScript = " x= document.getElementsByName('RadioGroup'); document.title = getCheckedValue(x); function getCheckedValue(radioObj) { if(!radioObj) return ''; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ''; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ''; } " ]; MBS("WebView.RunJavaScriptReturnTitle"; webViewerName; javaScript) ) ]
                                                                                                                                                                                                                                                            • If [ WebViewer_Forms::Result = "" ]
                                                                                                                                                                                                                                                            • Beep
                                                                                                                                                                                                                                                            • Show Custom Dialog [ Title: "Noting selected"; Message: "Please choose one of the radio button first, then try again!"; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                                                                                                            • 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

                                                                                                                                                                                                                                                                    Menu/List

                                                                                                                                                                                                                                                                    Parent Folder: [Menu/List]Next Script: [Select the Second Menu option]
                                                                                                                                                                                                                                                                    Script NameSelect the First Menu option
                                                                                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                                                                                    Include In MenuNo
                                                                                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                                                                                                      Script Definition
                                                                                                                                                                                                                                                                      Script Steps
                                                                                                                                                                                                                                                                      • Set Variable [ $result; Value:Let( [ // ------- setup the WebViewer ----------- webViewerName = "MyWebViewer"; wName = Get(WindowName); windowRef = MBS("Window.FindByTitle"; wName); webViewerID = MBS("WebView.FindByName"; windowRef; webViewerName); // ---------set the javascript------------- javaScript = " document.MyForm.menu.selectedIndex =0; " ]; Case( webViewerID = 0; "Web Viewer \"" & webViewerName & "\" Not Found " &windowRef ; MBS("WebView.RunJavaScript"; webViewerID; javaScript) ) ) ]
                                                                                                                                                                                                                                                                      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: [Select the First Menu option]Parent Folder: [Menu/List]Next Script: [Select the First List Option]
                                                                                                                                                                                                                                                                                    Script NameSelect the Second Menu option
                                                                                                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                                                                                                    Include In MenuNo
                                                                                                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                                                                                                                      Script Definition
                                                                                                                                                                                                                                                                                      Script Steps
                                                                                                                                                                                                                                                                                      • Set Variable [ $result; Value:Let( [ // ------- setup the WebViewer ----------- webViewerName = "MyWebViewer"; wName = Get(WindowName); windowRef = MBS("Window.FindByTitle"; wName); webViewerID = MBS("WebView.FindByName"; windowRef; webViewerName); // ---------set the javascript------------- javaScript = " document.MyForm.menu.selectedIndex =1 " ]; Case( webViewerID = 0; "Web Viewer \"" & webViewerName & "\" Not Found " &windowRef ; MBS("WebView.RunJavaScript"; webViewerID; javaScript) ) ) ]
                                                                                                                                                                                                                                                                                      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: [Select the Second Menu option]Parent Folder: [Menu/List]Next Script: [Select the Second List option]
                                                                                                                                                                                                                                                                                                    Script NameSelect the First List Option
                                                                                                                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                                                                                                                    Include In MenuNo
                                                                                                                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                                                                                                                                      Script Definition
                                                                                                                                                                                                                                                                                                      Script Steps
                                                                                                                                                                                                                                                                                                      • Set Variable [ $result; Value:Let( [ // ------- setup the WebViewer ----------- webViewerName = "MyWebViewer"; wName = Get(WindowName); windowRef = MBS("Window.FindByTitle"; wName); webViewerID = MBS("WebView.FindByName"; windowRef; webViewerName); // ---------set the javascript------------- javaScript = " document.MyForm.list.selectedIndex =0; " ]; Case( webViewerID = 0; "Web Viewer \"" & webViewerName & "\" Not Found " &windowRef ; MBS("WebView.RunJavaScript"; webViewerID; javaScript) ) ) ]
                                                                                                                                                                                                                                                                                                      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: [Select the First List Option]Parent Folder: [Menu/List]Next Script: [Select the Second List option without Form Name]
                                                                                                                                                                                                                                                                                                                    Script NameSelect the Second List option
                                                                                                                                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                                                                                                                                    Include In MenuNo
                                                                                                                                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                                                                                                                                                      Script Definition
                                                                                                                                                                                                                                                                                                                      Script Steps
                                                                                                                                                                                                                                                                                                                      • Set Variable [ $result; Value:Let( [ // ------- setup the WebViewer ----------- webViewerName = "MyWebViewer"; wName = Get(WindowName); windowRef = MBS("Window.FindByTitle"; wName); webViewerID = MBS("WebView.FindByName"; windowRef; webViewerName); // ---------set the javascript------------- javaScript = " document.MyForm.list.selectedIndex =1 " ]; Case( webViewerID = 0; "Web Viewer \"" & webViewerName & "\" Not Found " &windowRef ; MBS("WebView.RunJavaScript"; webViewerID; javaScript) ) ) ]
                                                                                                                                                                                                                                                                                                                      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: [Select the Second List option]Parent Folder: [Menu/List]
                                                                                                                                                                                                                                                                                                                                    Script NameSelect the Second List option without Form Name
                                                                                                                                                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                                                                                                                                                    Include In MenuNo
                                                                                                                                                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                                                                                                                                                    Scripts that use this script
                                                                                                                                                                                                                                                                                                                                      Script Definition
                                                                                                                                                                                                                                                                                                                                      Script Steps
                                                                                                                                                                                                                                                                                                                                      • Set Variable [ $result; Value:Let( [ // ------- setup the WebViewer ----------- webViewerName = "MyWebViewer"; wName = Get(WindowName); windowRef = MBS("Window.FindByTitle"; wName); webViewerID = MBS("WebView.FindByName"; windowRef; webViewerName); // ---------set the javascript------------- javaScript = " x= document.getElementsByName('list'); x[0].selectedIndex=1; " ]; Case( webViewerID = 0; "Web Viewer \"" & webViewerName & "\" Not Found " &windowRef ; MBS("WebView.RunJavaScript"; webViewerID; javaScript) ) ) ]
                                                                                                                                                                                                                                                                                                                                      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: Forms Sample

                                                                                                                                                                                                                                                                                                                                                    Used functions: