Reactor’s Popup menus come in two variations: PopupMenuScript and PopupMenuField. Both can be activated and navigated by keyboard on the Mac, in contrast to Filemaker’s own Popup menus. PopupMenuField requires the name of a field whose contents are to be updated when a value is selected, whereas PopupMenuScript does not require a field but does require the name of a script.
PopupMenuScript is ideal for navigation. When an item is chosen from the popup menu, a value is passed to the nominated script as a parameter. You can pick up the value in the script and use “Go to Object” to navigate to the desired Object.
PopupMenuScript( valueListOptions ; startValue ; scriptOnSelect {; status ; bgColor})
| 1 | valueList* | The list of values in the Popup menu. See note below. |
|---|---|---|
| 2 | startValue | Starting value if there is to be a default. Can be a field, or a calculation, global variable etc. |
| 3 | scriptOnSelect | Name of the script to run when the user selects a value. |
| 4 | status (opt) |
Text or name of a field containing “enabled” (the default), “disabled”, or “hidden”, or a calc which returns one of those 3 values. |
| 5 | bgColor (opt) |
Default is white, but you can specify the color: see “Background Color” in the “Basics” section. |
Example:
PopupMenuScript (
"Details¶Contacts¶Enrolments¶Reserves"; // Value List
"Details" ; // currentValue
"Choose People Tab Set" ; // script
"enabled" ; // status
"white"// bgColor
)
*The Value List can be: