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.

Dynamically change field definition in table layout

Featured Replies

Is there a script that will allow you to change or set a field you wish to display in a table layout?

There are 4 variable fields:

sort1

sort2

sort3

sort4

One layout asks you to specify fields for the layout variable thus:

'sort1' could equal first_name if selected

'sort2 could equal last_name if selected

or

'sort1 could equal phone_number selected.

This is basically the same steps as when you are creating the layout and FMP asks you what fields you would like to include.

I would like to streamline the process a little within the database.

You can use the GetField or Evaluate functions with a field holding the desired field name.

For example,

If gSort1 is a global text field wherein you can enter or select a field name, then a calculation field of Evaluate(gSort1) will return the value of the field whose name appears in gSort1.

  • Author

This works perfectly... one modification needed if possible.

Now after I set the row as either first name or last name, the field title is still sort1, or calc 1 and the fields have either first or last name information. Can I also dynamically change the field title to reflect the data in the row?

No. You can, however, use additional calculation fields to display the correct title and use them in place of the default title texts.

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.