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.

Address Concatenate w/ Punctuation

Featured Replies

👋 Hello and thank you! 😊

looking for a calculation to properly concatenate address/suite/city/state/zip fields with punctuation on one line
ie: 1235 Alley Way, Suite A, Dreamcity, 95991 CA

also looking to avoid goofy results if there is any missing data
ie: ,, Suite A, Dreamcity, 95991, 

with my limited knowledge I'm currently using:

Case(not IsEmpty(address); address & ", ") & Case(not IsEmpty(suite); suiteTitle & " " & suite & ", ") & Case(not IsEmpty(city); city & ", ") & Case(not IsEmpty(state); state & " ") & Case(not IsEmpty(zip); zip)

which may work if I could trim off the ", " at the end if ever it is hanging out at the end.

Try something along the lines of:

Substitute ( List ( StreetAddress ; Suite ; City ; Trim ( State & " " & ZIP ) ) ; ¶  ; ", " )

 

  • Author

Works beautifully! Thank you!.. tho I do not fully understand how its working, lol.

I understand the Substitute and List function, but on the Trim, is the function only looking at fields State and Zip?

...also, I have fields suite and suiteTitle, so what if I did not want result Suite, H, but rather Suite H

I like the idea of breaking down the address2 into selectable titles for the user. But
if too messy, I can convert to using an Address2 field where user will have to type the entirety of the address2 in, ie: APT/SUITE/BLD/ETC 123

1 hour ago, Dr. Evil said:

I do not fully understand how its working

It's taking advantage of the fact that the List() function skips empty values.

1 hour ago, Dr. Evil said:

on the Trim, is the function only looking at fields State and Zip

Yes. If both fields are filled, you get both, separated by a space. If only one is filled, the space is trimmed away. If both are empty, the entire value is empty and therefore skipped.

1 hour ago, Dr. Evil said:

I have fields suite and suiteTitle

Do the same thing with Trim().

 

  • Author

Thank you Comment, working like a dream!

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.