Skip links

Easy navigation between FileMaker layouts

FileMaker training, courses, coaching

Switch between FileMaker layouts with easy navigationIf a FileMaker Database has more than one layout, a navigation is required. This can be realized in FileMaker in various ways. In the simplest case, individual buttons are simply placed on each layout with which other layouts can be called up. The disadvantage of this "standard solution" is that the buttons in each associated layout have to be adapted as soon as a new layout is added to the FileMaker solution. This makes the simplest solution the easiest, but also the most impractical. This example shows an approach using the FileMaker "conditional formatting" function and the use of a global text field with any number of repetitions. The result is a Navigation bar with automatic display of the active selection. Following this article, you can download a FileMaker file with the navigation described and adapt it to your needs yourself.

Part 1: Basics, fields and conditional formatting

Step 1:
Open the database administration in FileMaker and create a text field ("app_register"). Then click on the "Options" button to open the advanced field settings. In the dialog window, use the "Storage" tab, set the option "Use global storage" and in the "Repetition" section, enter the number of fields you need for your navigation. Create another field ("MenuMarker Nr") as a number field, also with global storage.

Step 2:
Switch the FileMaker to layout mode and place the fields "app_register" and "MenuMarker Nr". For the "app_register" field, you can now use the Inspector tab, specify how many repetitions are displayed and whether they are displayed vertically or horizontally.

Step 3:
To highlight the active selection in the navigation, we use the FileMaker function "conditional formatting". Right-click on the repeating field "app_register" and select "Conditional formatting" from the context menu. You can see the necessary settings in the following illustration.

Step 4:
Switch the FileMaker to browse mode. You can now enter the names for your navigation points in the repeat field. Then enter a number (1 to the number of repetitions) for the active menu item in the "MenuMarker no." field. The menu item should now be displayed in the selected formatting.

This completes the first part of the navigation. Now a small FileMaker Script and a modified display of the navigation can be created.

Part 2 Navigation and scripts

Step 1.
Switch FileMaker to layout mode and duplicate the "app_register" field. Then set the number of repetitions for the field to the value 1 to 1 using the inspector.

Now you only see a field repetition, i.e. a simple text field. Now duplicate this field according to the number of entries for your navigation and set the current field number in each field (2 to 2, 3 to 3, ...). See the following illustration.

Step 2.
Script for the navigation bar. You have two options at this point. You can assign a separate script to each field, or you can use a script in which various actions or scripts are executed after querying the script parameter. In either case, you must set the field value for the "MenuMarker no." field to the repeat number for the active menu item.

Example script "MenuButton":
Open the script administration in FileMaker and create a new script. The script should be executed by each button of your navigation, the number of the field repetition is used as the script parameter. See the following illustration.

Step 3.
Switch FileMaker to layout mode. For the fields that you have created as duplicates, you now use the "MenuButton" script with the script parameter 1 to x, depending on the number of the field repetition.

Step 4.
Switch FileMaker to browse mode and test your navigation bar.

Download FileMaker sample file

Leave a comment

  1. Hello Jens Liebel
    The instruction seems to be something I have missed so far.
    The representation of number 3 is a link.
    There should be programstumpen reception of navigation button to switch layouts.
    Is it possible to find this piece of programming.
    Many thanks in advance

Share this page:

ERP software as flexible as your company.
We will be happy to advise you.

Customizable ERP software for Mac, Windows and iOS.

You are here: Providing FileMaker layouts with simple navigation - a guide.