Skip 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.

Don't calculate if one field is empty

Featured Replies

I have this rough assembly to add a phone area code based on the state postcode (zip code) of an entry. Its correct 90% of the time and cuts down on manual entry. However, I don't want it to calculate/generate a result if the field 'Landline Trimmed' is empty, as at the moment it creates "+61 2" in the field as the area code field always contains a value. Is there something I can add to this to stop it generating "+61 n"? Thanks

 

Let(

@NumbersOnly = Filter(Landline Trimmed; "0123456789");

"+61 " &  Area code from postcode first numeral   & " " &  Left(@NumbersOnly; 4)

 & " " &

Right(@NumbersOnly; 4)

)

Solved by eos

Go to solution
  • Solution

Wrap the existing statement into an If:

 

If ( not isEmpty ( Landline Trimmed ) ;  yourExistingStatement )

 

btw, why not GetAsNumber ( Landline Trimmed ) ?

  • Author

Thanks for that. As for get as number, I do that initially via another field then work on it to build up a trimmed and formatted number.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.