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 field contents entered from checkboxes

Featured Replies

In one layout of my solution, the user is presented with one field with checkboxes and is asked to select "all options that apply" (ie. selected from values in the associated value list).

In different "report" layout, I show the contents of that field presented as a standard field. The contents of the field are, of course, the values selected from the checkbox, delimited by carr. returns.

The order in which these are displayed in the report layout (in the standard field) are shown in the order that they were selected.

Question: Is there a way to display the contents of the field in a sorted fashion (ie. ignoring the order in which they were selected) ?

Thanks....

Simple answer: no.

Extremely complicated answer: yes.

The yes answer will involve parsing and sorting the field entry with a script, or using a portal and related records instead of simple checkboxes.

Other people will no doubt have even better suggestions!

You'll need a calculated text field and a cup of coffee. Something like this:

-- {P} means the paragraph symbol --

Case (PatternCount (Flavors, "Sweet"), "Sweet{P}") &

Case (PatternCount (Flavors, "Sour"), "Sour{P}") &

etc. etc.

Of course this will always leave you with an extra carriage return, and the easiest way to fix that is with another calculated text field:

Left(flavorCalc, Length(flavorCalc) - 1)

  • 1 year later...

See the thread 'Sorting Checkboxes' for a much easier solution that does not involve knowing the contents of the value list.

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.