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.

Calc field displaying values of check boxes

Featured Replies

I have a field called “Diagnosis” The field is check boxes so users can choose all that apply for a given consumer, e.g. “Cerebral Palsy” “Retardation” “Traumatic Brain Injury” etc…

I would like to create a calculation field that will list all checked box values for a record separated by commas to save space on a data sheet layout. “Cerebral Palsy, Retardation, Traumatic Brain Injury” Thank you.

As checkboxes are selected, FMP inserts the values into the field in the order of selection with paragraph characters as delimiters.

To get what you want, create a calculation field that uses the Substitute() function to change the paragraph characters into commas.

  • Author

That's great! Thank you for your help!

  • Author

As values are selected by different users, how can I sort the diagnosis values to be displayed in alphabetical order?

The value list will sort the items alphabetically. If you want some sort of "each user only sees their own entries" system, then forget it, that's another ball game. MUCH more complicated. I've never done it.

Actually Vaughan, I don't thin you are correct about the sorting. Text fields enter the check box values in the order they are checked. They do not sort. If an item is unchecked, the rest of the list slides up - but the list still stays as entered.

Value lists based on values from a field will sort themselves, but the checked values still are entered in the order checked.

Actually Vaughan, I don't think you are correct about the sorting. Text fields enter the check box values in the order they are checked. They do not sort. If an item is unchecked, the rest of the list slides up - but the list still stays in the order entered.

Value lists based on values from a field will sort themselves, but the checked values still are entered in the order checked.

My original post suggested the use of value lists to display the results. These will be sorted. The checkbox entry field will be in order of selection. The original question was getting the values to display comma delimited.

The only way to make this field display sorted is to run a script that re-arranges the entered values. Complicated and not too elegant, unless you can build an interface that gets the user to run the script every time the field is modified.

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.