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.

Sorting value list

Featured Replies

  • Newbies

I have a pop up list of contact names whose values come from a field in a related file. I want the names to appear in the list as first name last name and be sorted by last name. Instead they are automatically sorted by first name. Any suggestions as to how I can get the list to be sorted by last name?

I really don't want them displayed as last name, first name.

Since you are building the value list only off of one field, and this field contains beoth the first and last name, I don't see how that is possible.

However, you could create two new fields named 'NameFirst' & 'NameLast'. Then base the value list off of both fields, and sort by the second field.

Hi Brent,

Unfortunately, using two separate fields would only populate the target field with the first field, not both.

rpc, you might consider using a portal for selecting a name.

  • Author
  • Newbies

I hadn't thought about using a portal. I had wanted the easy option of a pop up list, but obviously it is not to be.

Hi,

The key is to have the last name separate. You implied that both the first name and the last name are in one field. You can use a calculation field to extract the last name. (You'll have to do some research on how to find everything to the right of a space using the Position function.) Then you'll be able to have the last name calculation field as the second field in the pop up list and the one that is used for sorting.

Good Luck,

Steve

  • Author
  • Newbies

This is a little messy, as now I have last name displayed twice, but at least it works better than anything I came up with.

Thanks.

  • Newbies

In FMP 7, you can use the specs as described by BrentHedden. Once you have the one name field split into 2 fields probably using rightword & leftword calculations and for ex. fName, lName - go into defining value lists and select fName as the first field, lName as the second field and sort by the second field. This gives you a nice looking popup list with fName then lName and sorted by lName. Using two fields of full name and last name will indeed give you first name, last name, last name and looks rather funky.

In FMP 6, this was not possible.

  • Author
  • Newbies

As Ender says above, this only puts fName into the field. You can show two fields but FMP (6 or 7) only takes the first one.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.