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.

Displaying Checked Boxes

Featured Replies

  • Newbies

Is there a way to display only the checked boxes in a field? I have a field that may have ten items that could be checked but I only want to display and print out the items that have been checked. It could be zero to all of them checked.

Checkboxes are just a way of seeing the data in a field. What you need to do is to look at the data in a regular field.

You can either put this on a separate layout, or on the same one.

Do a search of the Forum on Checkbox Display, and you might find more information on this subject.

HTH

Lee

Hi gregtell, welcome to FM Forums!

As Lee says, you can place the regular field on your layout. Values in a checkbox display as multiline thus:

Item1

Item6

Item9

Right-click field and set Field Control Setup as Edit Box. Then you can set the field to Format > Set Sliding/Printing (if need be). Make the field as large as you need then apply Slide Left and/or Slide Up. If you want this list as one line separated by commas then you need to create a calculation (text, unstored) and display that on your printout with:

Substitute ( ValueListItems ( Get ( FileName ) ; "yourVLname" ) ; ¶ ; ", " )

LaRetta :wink2:

If you want checkboxes on the checked items (but only the checked items), you can add a self-join TO on the record ID, define a value list based on the related original field, and apply that value list as a checkbox set to the field on the print layout.

  • Author
  • Newbies

LaRetta,

Thanks for you help. But I don't understand what you mean by: "If you want this list as one line separated by commas then you need to create a calculation (text, unstored) and display that on your printout with:

Substitute ( ValueListItems ( Get ( FileName ) ; "yourVLname" ) ; ¶ ; ", " )."

I have a database named Menu and a checkbox field named Items with several checkbox items and I would like the checked items only displayed on a single line seperated by either comas or spaces. Could you explain in a little more detail the above function? What is a calculaton (text, unstored) ?

I hope I am not asking for too much?

When you attached your checkbox value list to your Items field, it meant that you have created a Value List. I assume it's called Items? Look and make sure of the exact name - you'll need it for the next step.

Now open your Define > Database > Fields tab and create a new field called cItemsLine. The TYPE of field will be calculation. When the calc box opens, you will put this in the calc box:

Substitute ( ValueListItems ( Get ( FileName ) ; "Items" ) ; ¶ ; ", " )

Change the result type (bottom left popup) to be TEXT. Then select Storage Options and click 'Do Not Store Calculation Results...' Say OK, then OK to back out of the calc box, then OK at your Define Database to save your new calc. Then add the new calc to your layout. It will display only chosen values as Value1, Value6, Value9 in a one-line display.

And no, you aren't asking too much. We expect people to come to Forums and ask questions. I ask many questions also. :smile2:

Oh! But as Mike indicates, if you want the Value List to only contain entries for each record, you will need to establish a join (uniqueID = uniqueID) and base your value list on 'Use Values from Field' and only related (this self-join) values.

Perhaps I am missing something, but it seems to me that a calculation field (result is Text) =

Substitute ( Items ; ¶ ; ", " )

should do the job of "checked items only displayed on a single line seperated by either comas or spaces".

Unless the checked items need to be sorted by their order in the value list (otherwise they will show in the order of their selection).

I suppose you could do it the easy way. ;-)

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.