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.

Featured Replies

I have the following formula:

Case (

MilesuntilService ≤ 3000 ; "Good";

MilesuntilService ≤ 4500 ; "Service Soon" ;

"Schedule for Service"

)

I want the text to change color depending on what is in the Service Status field, for example - "Good", text will be green - "Service Soon", Text is yellow, and - "Schedule for Service", text is red.

I have placed the TextColor calc in several different spots - sometimes I get too many parameters error, or the field lists a 1 or 0 even through the calc should return Text. I not am getting where the placement of the additional info should be. I swear I took several, hours long stabs at trying to figure this out myself including search this forum and FM Help.

Here two examples of things I tried:

Case (

MilesuntilService ≤ 3000 ; "Good" ; TextColor ( "Good" ; RGB ( 0 ; 255 ; 0 ));

MilesuntilService ≤ 4500 ; "Service Soon" ; TextColor ( "Service Soon" ; RGB ( 255 ; 255 ; 0 )) ;

"Schedule for Service" ;TextColor ( "Schedule for Service" ; RGB ( 255 ; 0 ; 0 ))

)

Case (

MilesuntilService ≤ 3000 ; "Good" ; TextColor ( NextService ; RGB ( 0 ; 255 ; 0 ));

MilesuntilService ≤ 4500 ; "Service Soon" ; TextColor ( NextService ; RGB ( 255 ; 255 ; 0 )) ;

"Schedule for Service" ;TextColor ( NextService ; RGB ( 255 ; 0 ; 0 ))

)

The above don't produce errors, but they also produce no results either.

Any thoughts/Advice?

Also, can anyone recommend a book like FM Calculations for Dummies? I am getting deeper into more complex calcs and I am really over my head at times.

Jessica

Edited by Guest

Hi

there's no 2 w/o a 3 ! :

So go to try this last calc:

Case (

MilesuntilService ≤ 3000 ; TextColor ( "Good" ; RGB ( 0 ; 255 ; 0 ));

MilesuntilService ≤ 4500 ; TextColor ( "Service Soon" ; RGB ( 255 ; 255 ; 0 )) ;

TextColor ( "Schedule for Service" ; RGB ( 255 ; 0 ; 0 ))

)

  • Author

Thank you it works - I see where my calc was wrong, I put in too much info - wow you all here are just awesome! Thanks again!

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.