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

Recommended Posts

Posted

How do you count the letter within a field? Also can I do an if statement that changes the color of this field. ie. red.

Thanks in advance.

Posted (edited)

Length()

If you wish to use in conditional formatting, the calculation must evaluate to Boolean true (1) so the 'If' or 'Case' is already implemented, just as in If[] script-step. Type the calculation that you want to evaluate to true.

Length ( fieldA ) > 150

... and below specify red.

Edited by LaRetta
Posted

It looks like to me that length does not include the spaces between words. Am I correct? If so, how would I count every character including the spaces.

Also--

... and below specify red.

Having trouble getting the red. Currently the fomula evaluated to 1. To make the cell red-Do I put it in the calculation? :hmm:

Posted

Length does include the spaces.

Select the field then right click and select conditional formatting. Use LaRetta's calculation as the Formula and choose the fill colour you need.

BUT you show that you use version 8 - no conditional formatting

Posted

If (Length ( field ) <150; TextColor ( Length (field) ; RGB ( 255 ;0 ; 0 ) ); Length(field))

I think you meant =

If (Length ( field ) <150; TextColor ( field ; RGB ( 255 ;0 ; 0 ) ); field)

This should be an auto enter calculation (replacing existing value). However, it won't work to remove the color when adding characters, so try:

TextColor ( YourField ; Case ( Length ( YourField ) < 150 ; RGB ( 255 ; 0 ; 0 )  )  )

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