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.
PopupMenuField sets a nominated field to the value selected from the popup menu and optionally runs a script as well.
| Parameter Name | Description | |
|---|---|---|
| 1 | valueList | The list of values in the Popup menu. See details below. |
| 2 | fieldName | The name of the field to receive the chosen value. This must be in quotes and be the full TableOccurrence::FieldName form. |
| 3 | script (opt) |
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. When hidden, the popup menu disappears from view. When disabled, it does not run the script, but still sets the nominated field. |
| 5 | bgColor (opt) |
Default is white, but you can specify the color: see “Background Color” in the “Basics” section. |
PopupMenuField (
"Details¶Contacts¶Enrolments¶Reserves¶Courses"; // Value List
"Test::MyField" ; // fieldName
"Choose People Tab Set" ; // script
"enabled" ; // status
"white" // bgColor
)
* The Value List can be:
For example, take this calculation for the valueList parameter: "Values=John¶Mary¶Sam"&"IDs=524¶768¶231"If the user selects "Mary" from the menu, the corresponding value "768" will be inserted into the field.
Comments