Jump to content

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

Recommended Posts

Posted

I need a calculation field that is supposed to change its text color if the text color of another field is white. I'm not quite sure how to do this.

This doesn't seem to work:

Case (TextColor ( Att15 ; RGB ( 255 ; 255 ; 255 ) ) ; TextColor ( Att15 Card ; RGB ( 255 ; 255 ; 255 ) ):)

Plus I also need this calculation in this field.

Att15 + PAtt Container

I'm not sure how to make the first calculation work, and I don't know how to combine the two calculations. Any help you can give is much appreciated.

Posted

How about this...


Case (



PatternCount ( GetAsSVG ( field ) ; "#FFFFFF" ) ;

 TextColor ( field ; RGB ( 0 ; 0 ; 0 ) ) ;

 TextColor ( field ; RGB ( 170 ; 0 ; 0 ) )

)



if the field has any White text it will be formatted to black if there is no white text it will be formatted red.

Posted

How would this work?

What I need is to check to see if the color of the text in the Att15 field is white. If it is, I need to change the color of the text in the Att15 Card field to white.

Posted

Make Att15 Card an auto-enter calculation, with 'do not replace existing value' deselected, of

TextColor( Att15 Card; Case( PatternCount( GetAsSVG(Att15); "#FFFFFF" ); 16777215; 11141120 ) )

replacing 11141120 for the RGB of the color you want as the default.

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