Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Which is the frontmost tab?

Featured Replies

I am looking for a script or custom function that will return the name of the frontmost tab. I have up to three levels of nesting, and by the frontmost tab, I mean the insidemost tab currently displayed.

So far, the following custom functions have failed to work for me, consistently returning the wrong tab name:

* SeedCode_FrontTabName (and the Faster version)

* tabsFrontmost (with related functions).

Does anybody have any suggestions for a more reliable solution? I'm amazed I can't get this to work.

  • Author

OK, I've now also tried the custom function recommended in another thread, viz:

* frontTabs

This also returns the wrong tab name.

Mostly these functions fail by returning the enclosing rather than the enclosed tab. But some return a sibling.

  • Author

OK. Now I have found a solution. I have quit from Filemaker and restarted it. Now the SeedCode function returns the correct value. This is a weird kind of crash in Filemaker in which only the custom functions stop working. And they don't stop working altogether, they just start returning the wrong results. It happened to me once before in FM9, and now I have had it in FM10!

Try these:

http://www.fmfunctions.com/fid/217

or

http://www.fmfunctions.com/fid/97

I have quit from Filemaker and restarted it. Now the SeedCode function returns the correct value.

How are you testing this? Keep in mind that even an unstored calculation field may not refresh when tab panels are switched.

  • Author

There's a button (not on any of the tabs). When I click it, it is supposed to get the name of the frontmost tab and hold it as a variable. It's that step that was failing - so no fields involved at all.

Edited by Guest

  • Author

Yes, FrontTabsPanelsList also returns the correct result now I have restarted Filemaker.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.