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

Recommended Posts

Posted

Hi,

I have a field containing about 20 selection choices via checkboxes. I have another field who's purpose is to display the first 2 characters,(plus a comma) of each checked item. I can't seem to get past "Left" functions.

So if there are three checkboxed items, "ACCOUNTING", "PREPRESS", "SHIPPING", I am looking to see returned "AC,PR,SH"

Any help would be appreciated.

Thanks!

MW

Posted

It's best to use a custom function for this. Something like:

TruncateValues ( listOfValues ) =

Let ( [

countValues = ValueCount ( listOfValues )

] ;

Left ( GetValue ( listOfValues ; 1 ) ; 2 )

&

Case ( countValues > 1 ; ", " & TruncateValues ( RightValues ( listOfValues ; countValues - 1 ) ) )

)

  • 4 weeks later...
Posted

Any help would be appreciated.

Another way is to use two calc fields:

1) Repeating field with 20 rep:

Left ( GetValue ( Extend ( yourField ) ; Get ( CalculationRepetitionNumber ) ) ; 2 )

2) Calculation text field:

Substitute ( List ( repeating ) ; ¶ ; "," )

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