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 7320 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a calculation field(A.) that checks to see whats entered in another field(B.), and if a specific word comes up(in B.) it turns the text in it (in A.) white. By doing this I run into the problem that I can't type into that (A.) field. Is there a way to make (A.) typeable and yet keep the script to change the text in it's color?

Thanks for any help you can give.

Posted

You might be doing it entirely without script, is there a special reason for both having a calc'field and a script doing almost identical tasks?? I've made you a template exploiting the Autoenter (replace existing value) ...it's the closest you get to recursivity if don't have 7Dev!

--sd

CalidoscopeEyes.zip

Posted

I am using Dev 7.

<--------- SEE!

This is what I have so far.

I have 3 fields.

One is called subject. Its a text field. This field can have 1 of 30 words in it based on a value list.

Two is called color. Its a calculation field wich has a calculation result of a container. This field has a case function which checks whats in the subject field and changes what it holds based on what it finds.

Three is called Number. Its a text field. This field is on top of the color field in the layout. One of the colors that goes into the color field is black. Because of that, when the color field is black, the black text in the text field doesn't show up. So I need a way to change the text color in the text field to white whenever the text in the subject field calls for the color field to change to black. The catch is, the text field must stay editable. Thats the problem I'm running into.

Note: this is in response to transpower

How would I do an auto-enter calculation for B?

Posted

How would I do an auto-enter calculation for B?

You seems to have overseen that I use them as well in the template I made you, which also needs to be done with the customfunctions work- otherwise won't you get access to them!!

--sd

Posted

The template you have given is checking to see if two fields match. I just need to know if 1 field has a word in it. If so, change the color of the text.

I tried the calculation below on a text field with a calculated value. But it doesn't work. It works great on a calculation field but not on a text field.

Case ( Dp0 SE Menu = "OLD"; TextColor ( Dp0 ; RGB ( 255 ; 255 ; 255 ) );

TextColor ( Dp0 ; 0 ) )

Any help you can give is much appreciated.

This topic is 7320 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.