Jump 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.

Change tab based on field contents

Featured Replies

I'm a newbie so please forgive this question. I have looked through all the threads on this but so far haven't found something that works.

I have a field with a drop-down menu which I want to use to show/hide fields

let's say the field is called select_tab with drop-down selections of A, B, C, D.

In my tabs I have tabs A, B, C, D, E respectively.

If I understand correctly, tab E (not being on the menu of select_tab) is to be used as the default tab and left with no contents.

Tabs A, B ,C, D all have some fields which I want to display ONLY if the corresponding letter is selected in select_tab

Having messed around with all the scripts I've found on the threads, I still can't get any that work (FM10 pro adv)

If anyone could help, would be much appreciated, J

  • Author

I can't thank you enough for this - fantastic. Thanks again.

  • Author

Just an update to this. Your file example works great but when I tried using it in my file I struggled to get it to work. I found another way that I should have figured before. The script is a bit longer and there was more work but anyway it works just fine.

First make a value list with A, B, C, D, E

Then make sure your tabs are named with corresponding names (A thru E)

Then set Tab E as the default

Then use an If fieldname = "A" statement followed by a Goto Object "A"

Else if fieldname = "B" followed by a Goto Object "B" etc etc until you reach the end of your choices

The last choice is Else if fieldname = "E" followed by Goto "E" in this case

Before the end if statement I placed an IsEmpty (fieldname) followed by Goto Object "E" as a safeguard. That covers accidental deletion and a new record with an empty field.

Anyway, still a big thanks for the example you showed me.

Create an account or sign in to comment

Important Information

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

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.