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.

Text Colour via calculation

Featured Replies

Hi All,

i have a field calculation were if a certain instance occurs it enters a message in to a field and if another instance occurs it enters another message.

now id like to if possible make one message text go red and the other green.

How can i do this?

Thanks in advance.

What version of FMP?

Ricardo

Use the update your Profile below your picture to update your FileMaker Version, Platform and Operating System.

TIA

Lee

  • 1 month later...

*bump*

Same question, more or less. FMP6/MacOSX

I want a button label to change color based upon a calculation. (A "Find" button's label should change to "Show All" in red when working with a found set).

A text box with two merge fields (one black, one red) seems like one way to go; just wondering if there's an easier way.

Thanks for your consideration,

Chap

In FM7 you could do it with a fairly simple calc.

In FM6 I think you will have to use two fields for the text and stack them on the layout one set for black and the other for red. I would tend to use globals and set them (toggle for "" or "WhateverText") by script when using the button's attached script.

Someone else may have a more elegant solution.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.