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.

Auto-Enter Calculated Value Conditional Reset

Featured Replies

I currently have an address table that uses lookups to update City, State, ZipCode.

If a user enters a ZipCode, it will update City/State.

If a user enters City/State it will update ZipCode.

Now I am attempting to make sure that the ZipCodeSuffix also follows logical behavior by using the Auto-Enter Calculated Value.

I would like the ZipCodeSuffix field to set itself to an empty value if Address/City/State/ZipCode change.

If a user is actually inputting the ZipCodeSuffix I do not want its contents to change.

This will insure that any time an address is changed, a user has the opportunity to put in the correct ZipCodeSuffix and the solution will not allow an outdated suffix to remain.

So far I can only seem to make it always reset the contents or to never reset the contents.

Does anyone know how to make this work?

Hi,

You may use a calculation formula involving Get( ActiveFieldName ) so that you're conditionnally looking up data if the input is *not* made from the given field.

Quickly put, something along the lines of

If ( Get ( ActiveFieldName ) = "ZipCodeSuffix" ; ZipCodeSuffix ; Lookup ( Related::ZipCodeSuffix ; "" ) )

Now, if as you stated, you'd like it to be set to empty anytime data is changed into City/State or ZipCode, you may delete the Lookup part and once again use Get ( ActiveFieldName ) with the other field names and set the second part of the If/Case expression so that a "" is returned.

HTH

Edited by Guest

  • Author

I have been burning the midnight oil lately working and my tired brain doesn't always want to be creative :

Thanks for the help Ugo!

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.