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.

defaultResult

Featured Replies

hi everyone,

i have a Case calculation to provide a shortcut to writing out cities.

Case ( city_1 = "TO" ; "Thousand Oaks"; city_1 = "MO" ; "Moorpark"; city_1 = "NP" ; "Newbury Park")

i have read about defaultResult. but am having trouble putting it into the calculation. all the examples i have followed come back with errors.

i want the user to be able to type a city withOUT a shortcut and have the defaultResult show up.

thanks so much in advance...

The default would be:

Case ( city_1 = "TO" ; "Thousand Oaks"; city_1 = "MO" ; "Moorpark"; city_1 = "NP" ; "Newbury Park"; "")

Notice the double quotes at the end of the Case. What happens if city_1 has no value, or an illegal value? The default takes care of that condition. The default can be any value you choose.

Steve

I think the question is about something else (and in any case, a default null result is redundant).

Case (

city_1 = "TO" ; "Thousand Oaks";

city_1 = "MO" ; "Moorpark";

city_1 = "NP" ; "Newbury Park";

city_1

)

The last, unpaired, result is the default result. It will be returned if none of the preceding conditions is true.

Shouldn't that be:

Case (

city_1 = "TO" ; "Thousand Oaks";

city_1 = "MO" ; "Moorpark";

city_1 = "NP" ; "Newbury Park" )

Now any value other then the 3 shown produce a null which is the default result or

Case (

city_1 = "TO" ; "Thousand Oaks";

city_1 = "MO" ; "Moorpark";

city_1 = "NP" ; "Newbury Park";

"South Park" )

Where "South Park" is the default value.

Maybe. Let the poster clarify this. I took it that he has shortcuts for the 3 most-often occuring cities, but still wants to provide for explicit entry of other, less frequent cities.

The funny part is that poster recently initiated this.

OK, I missed that part where he wanted to use the value entered.

  • Author

You guys did great. thank you so much. the answer was exactly what i needed. the defaultResult, was just the name of the field in quotes.

thank you guys again...

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.