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.

Automatic Button Color

Featured Replies

Hi,

I am integrating a Contact Log into my database. There is a Recontact Date field that shows the date, in the future, that you are supposed to contact someone.

I'm displaying all the data in a portal right now.

If the recontact date 2 days in the future or sooner, I want a button on the left of the line in the portal to appear red.

If the recontact date is within a week, I want the button to appear yellow.

If the recontact date is more than week in the future, I want the button to appear green.

I know how to calculate the date, but I dont know how to make the button change colors. How do I do this?

You can't change the color of a button on the fly. You can however store pictures of the 3 different buttons in a repeating container field and make the "button" on your layout a calculation container field that gets the correct repetition based on your formula.

  • 2 weeks later...
  • Author

Thanks for the response!

I just have a quick question...

I've added a repeating container field in my To Do List table. There are three different colors, so I did three different repetitions.

I have .bmp's of my 3 different buttons, but how do I get them into the different repetitions? I can put one in, but when i past in the second one, it replaces the first.

Also, will every single record need to contain each of the 3 buttons? That seems like it would waste a lot of resources.

Thanks for your help

Check this post.

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.