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.

Capturing the attention of the user by use of a conditional flag

Featured Replies

Hello,

 

I am building a database for a hospital program and I have a table "patients" that is related to another table "tasks".

 

On the main layout I have a button that goes to the "tasks" records

 

In the tasks table each record corresponds to a task the doctor must complete for the patient its related to. There is a field that has a checkbox "completed"

 

I want the button to conditionally turn red when the at least one task is incomplete. where the field completed="completed" 

 

Is there a calculation step i can put in the conditional formatting that tells filemaker to check all of the related records in "tasks" to patients that are incomplete?

 

Thanks for help and if you need clarification dont hesitate to ask. 

Solved by eos

Go to solution
  • Solution

Define the CF formula for the button as

Count ( Tasks::primaryKey ) > Count ( Tasks::completed )
  • Author

 

Define the CF formula for the button as

Count ( Tasks::primaryKey ) > Count ( Tasks::completed )

Thank for the reply! This formula does work but it doesnt evaluate the count of the tasks completed that are specific to the patient. It looks up every record in the "tasks" table, not the records that are related to the specific patient. 

  • Author

Thank for the reply! This formula does work but it doesnt evaluate the count of the tasks completed that are specific to the patient. It looks up every record in the "tasks" table, not the records that are related to the specific patient. 

OOPS! my Bad it worked. I put the wrong field in. Noob mistake. 

 

Thanks a lot!

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.