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 a value list

Featured Replies

Hi,

I have a value list (pop-up menu), whose values are pulled up from a field in another file. That field is a compilation of 2 date fields in that file (DateToText(PeriodStart)&"-"&DateToText(PeriodEnd))- ie. it is a text field.

I'd like these (text) values in the pop-up menu to be sorted by PeriodStart, now they seem to be in random order.

Among other things, I've tried to create a related "pop-up menu values"- field in the main file, using a relationship that sorts the related records by PeriodStart, and pull the values for the pop-up list from that field, but that doesn't seem to have any affect on how the value list is sorted.

Now I'm starting to wonder whether this is at all possible...so any help with this is greatly appreciated.

Jari V.

You could create a calculation text field of Year(PeriodStart) & Right( "0" & Month(PeriodStart), 2 ) & Right( "0" & Day(PeriodStart), 2 ) and base your list on this field. It will sort appropriately since the year is first and the format is consistent.

  • Author

Thanks a lot,

I even added the PeriodEnd-values to the calculation text field (now the pop-up menu displays the whole range) - still sorts properly.

Jari V.

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.