Skip 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.

Response in Checkbox Field Generates A "1" or "0"

Featured Replies

  • Newbies

Hello,

I am working on a database that has a checkbox field "Ethnicity" that has the following options:

Hispanic or Latino

N.A. or Alaskan

Asian

A.A. or Black

White

N. Hawaiian or P.I.

This works fine for our staff entering data needing to identify students. However, when we prepare a report for the government each year each checkbox needs to reported separately as a 1 or 0 (for yes or no). Here's an example:

Hispanic or Latino if selected needs to report "1" in the Ethnic field. If not selected it needs to report a "0" in the Ethnic field. Similarly, if N.A. or Alaskan is selected it needs to report "1" in the Ethnic2 field or a "0" if not selected. This continues through Ethnic6. Ethnic1 through 6 need to be labeled that way because that's how we must upload them to the government report. Can these fields auto populate based on a calculation looking at what is/is not selected in the "Ethnicity" checkboxes?

Yes. If you give the Ethnic[x] fields auto-enter calculations that over-write the field, or just calculation fields, you can use a calculation like this:

 

not IsEmpty ( FilterValues ( "Hispanic or Latino" ; Table::Ethnicity ) )

 

This calculation will return True (1) when "Hispanic or Latino" is one of the selections in the checkbox. 

 

Hello,

I am working on a database that has a checkbox field "Ethnicity"

 

Shouldn't that be a radio button set …?

 

See if the attached file helps you.

RadioButtons_eos.fmp12.zip

Shouldn't that be a radio button set …?

 

I'm pretty sure a checkbox set is correct for this one. Ethnicities are not mutually exclusive, and the government's requested export format seems to be consistent with that.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.