Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

Hi,

Not really sure if I posted in the right forum directory, but anyways...

The problem I've stumbled across is "How to tell Filemaker Pro not to insert carriage return if the current line is the last one?". That is to create labels.

My calculation field goes like that:

Case (

IsEmpty ( First ); " " & Last & "¶";

IsEmpty ( Last);" " & First & "¶";

" "&First & " " & Last & "¶"

) & "" &

If ( IsEmpty ( Nickname ) ; "";" " & GetField ( "Nickname" ) & "¶" ) & "" &

If ( IsEmpty (Title) ;"" ;" "& TextSize (GetField ("Title") ; 8 ) & "¶")& "" &

If ( IsEmpty (Company ) ; "" ;" "& TextStyleAdd (GetField ("Company") ; Bold ) & "¶") & "" &

If ( IsEmpty ( Division ) ; "" ; " "& GetField ("Division") & "¶") & "" &

If ( IsEmpty ( ${Street 1 (Line 1)} ) ;"" ;" "& GetField ( "${Street 1 (Line 1)}" ) & "¶") & "" &

If ( IsEmpty ( ${Street 1 (Line 2)} ); "" ; " "&GetField ( "${Street 1 (Line 2)}" ) & "¶") & "" &

If ( IsEmpty ( City 1 ) ; "" ; " "&GetField ( "City 1" ) & "¶") & "" &

Case (

IsEmpty ( State 1 & Zip 1 ) ;"" ;

IsEmpty ( State 1 );" "& GetField ( "Zip 1" ) & "¶";

IsEmpty ( Zip 1 ); " "& GetField ( "State 1" ) & "¶";

" "&GetField ( "State 1" ) & ", " & GetField ( "Zip 1" ) & "¶"

) & "" &

If ( Country 1 = "UK" ; "" ;" " & GetField ( "Country 1" ) )

Thanks

AFAICS, the most simple solution would be to put the CR at the beginning rather than at the end, so each non-empty result brings along its very own CR.

First thing: you should use the field's name directly, instead of GetField(); for example:

Case ( not IsEmpty ( FirstName ) ; FirstName )

Re your question, I suggest you study the List() and Trim() functions.

  • Author
  • Newbies

Thanks very much, comment! The list function did the job perfectly!!

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.