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.

Change fillcolor of an object by clicking a button

Featured Replies

[color:"blue"] Hi! I want to be able to change the fill color of object by click a red button, or a blue button... I saw textcolor( text rgb ) but I dont know where to use it, I cant write in the action script, and I only see that function in the help. Thank you.

How about making the color red or blue depending on the value of the field? Here's an example from p. 913 of Using FileMaker 7:

Let (Profit = GetAsText (Earnings - Expenditures);

Case (

Profit > 0 ; TextColor ( Profit ; RGB (0 ; 0 ; 0 ) ;

Profit < 0 ; TextColor ( Profit ; RGB (255 ; 0 ; 0 ) ;

" " )

)

  • Author

I'm sorry, but where do I paste that code? I can't paste it in a scriptmaker since I have to choose from a list... but thank you anyway

You would put the calculation into a calculation field or a text field with an auto-enter calculation. However, TextColor changes the text color, not the fill color. See here for a way to change that.

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.