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.

Need to alphabetise a checkbox list result

Featured Replies

I have a checkbox field of five responses, A through E. The order in which users check does influence what is produced. For example, they check box A, B, then C gives the following:

A

B

C

with a carriage return after A and B.

If the user were to check B, then C, then A, the following is returned:

B

C

A

with a carriage return after B and C.

My question is this: is there a way through calculations to alphabatise the response, so that each of the above examples are "ABC'?

Thanks for your help!

Edited by Guest
I can't spell!

use a custom function to auto replace the field to sort in the correct order.

http://www.briandunning.com/cf/290

Try:

FilterValues ( ValueListItems ( Get (FileName) ; "YourValueList" ) ; Checkboxfield )

Ehm!

http://www.filemaker.com/help/FunctionsRef-346.html

...is available under fm8.5

If you put ValueListItems( in the first paramter, and the checkbox field in the second one, will each of ValueListItems( drop thru if it occures in the checkbox field.

Returns a text result containing only the values that were provided in filterValues, in the order that they were originally entered in textToFilter. If filterValues doesn't have any values, an empty string is returned.

Why should we then not just have a party and remake each function with our own versions? If we're talking CF's could you be sure a control mechanism secures against reaching the iteration max this means extra things on each cycle.

In a broarder sence could each function have methods in common even though they exist in each their own function, this is a overhead which years and years of debugging obviously have been removed to make each individual function as lean as possible.

--sd

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.