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.

FInding records with multiple checked values using "or"

Featured Replies

  • Newbies

I have a field with multiple values that are displayed as a checkbox set.

I would like to find all records that have the checked values of Z or Z2 or Z' or Z2'

I have very basic understanding of script writing only so created a button to perform a find with field "location" having criteria Z or Z2 or Z' or Z2' - this didn't work for some reason.

Ideally, i'd love to be able to count the total number of checkboxed values of either Z or Z2 or Z' or Z2'

Edited by Guest

Hi

searching for Z or Z2 or Z' or Z2' is the same of:

Enter Find Mode

Find ==Z ( you'll have to use the Set Field script step )

Add New Request

Find ==Z2

Add New Request

Find ==Z'

Add New Request

Find ==Z2'

Perform Find

  • Author
  • Newbies

Thanks Daniele,

Sorry but I'm not sure where to enter

Find==Z

Add New Request

Find==Z2

Add New Request

Find ==Z'

Add New Request

Find ==Z2'

As the scriptwriter for Set field "calculated result" does not recognised "Find".

Also is add new request the same as "new record/request"?

Any chance you know how to count the number of values that are checkboxed either Z, Z2, Z' or Z2'?

Thanks for your help

Mine wasn't a real script, only some steps in English.

Enter Find Mode [ ]

Set Field [ YourTable::YourCheckboxField ; "==Z" ]

New Record/Request

Set Field [ YourTable::YourCheckboxField ; "==Z2" ]

...

...

Perform Find [ ]

  • Author
  • Newbies

Hi Daniele,

It worked!!! But I had to use "=Z" instead of "==Z" before it would.

Any chance you know how to count the number of checkboxes that are selected within this found set?

Thanks,

Jaclyn :P

Could you post your file ?

It worked!!! But I had to use "=Z" instead of "==Z" before it would.

If you search for "=Z" you'll find records with Z but even records with Z' ( not to say that you'll find even records that contains multiple checked boxes with a Z and with other values checked ).

Searching for "==Z" gives a result ONLY if the field contains exactly a lonely Z

To count the occurrences of each value MAY BE that you could use a summary field but, could exist a record with that field containing multiple checked values ?

I would like to find all records that have the checked values of Z or Z2 or Z' or Z2'

Do you have any OTHER values that begin with Z or contain words that begin with Z? If not, you could simply search for Z - this will find all records that contain a word that begins with Z.

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.