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.

Color Text After Find

Featured Replies

  • Newbies

I have a script that finds records by looking at a "date" field that are less than 3 years old. After the find, I want to be able to color the text red if any record that will be older than 3 years 6 months from now, blue if it will be older than 3 years 3 months form now, and yellow if it will be older than 3 years one month from now. Help is appreciated

I would create a calculated field that changes the color based upon your criteria.

For example: A calculated field with this:

TextColor ( Text_Field ;

Case(Date_Field < get ( currentdate ) - (3.5*365) ;

RGB ( 255;0;0 ) ;

RGB ( 0;0;0 )

)

)

would text to red if date in above range, or black if not. You could add another case to change to blue, between black and red. (I have not verified the test for the date, I could be 180 degrees off, I always have to test)

Using this approach you do not have to add anything to your scripted find. Just find what you want and put this calculation on the resulting layout. This approach has the disadvantage that the user will not be able to edit the text you need colored. If you need this do a replace with the same criteria to change the text color and then let the user edit the field.

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.