Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5520 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I've got a calculation field set to a background color regardless of the results, which in this case is "Yes" or "nothing." I'd like for the field fill color to be different when the results is nothing. Is there a way to do this? If so, where can I find the RGB for the color I want if the results is nothing. When I say nothing, I mean it is filled with the current background but results is not displayed.

Posted

Hi,

Here is one option, although I'm not sure if it's the best. You are on FileMaker 10 right?

1. Create a container field in the table that you are basing your background-changing layout on. You want to send it to the back of the layout, fill up the whole layout, and make sure it's not enterable in browse mode or find mode.

2. In your Resource table (if you don't have one, create one) you will create a global container that will be an image of your background color. Remember because it's a global, you're going to have to set the global field in a start up script. Let me know if you need me to elaborate on this.

3. In your original layout, you will set up an on object exit script trigger for the text field you care about. The script will look something like this:

If[Test::text = "Wrong"]

Set Field[Test::Background; Resources::Background_Wrong]

Else

Set Field[Test::Background; ""]

End If

Exit Script[Result; 1]

Hopefully this makes sense. I tried it, and it works for me.

Makah Leal

Soliant Consulting

http://www.soliantconsulting.com/apps/filemaker/

This topic is 5520 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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