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.

Populate Field Based on Conditional Calculation

Featured Replies

I have been populating a "Nickname" field with the first line of another field using the calculation:

GetValue ( Address ; 1 )

I then use the Nickname field to populate a drop-down value list in a related database. It works perfectly.

I now need to populate the Nickname field only on the condition that my field called "Active" is Yes. I tried:

Case (Active = "Yes" ; GetValue ( Address ; 1 )

but it doesn't work.

Your help is appreciated. Thank you.

Kevin

Hi Kevin,

I assume this is a regular text field and you are using auto-enter calculation? If so, your existing data will not change unless you force an update. There are several ways to update the existing data but you do not need it as auto-enter text field - it can be type calculation (with result of text) instead in which case it will always update.

The only time you need auto-enter (calculation) is if the data in the field might be changed by the Users. Your calculation itself looks fine.

Added: If you are using names in a relationship (as it sounds like you might) then I suggest you switch to using serial IDs. I just want to give you a 'heads up' to potential issue that I sense here. If you are not using names to relate two tables then please just ignore this added paragraph. :)

  • Author

Thank you, LaRetta.

I changed the field type to Calculation (unstored) and now it works perfectly, except...my value list stopped working. I now get a message that the value list will not work because the field cannot be indexed. Am I missing something?

Thanks again,

Kevin

It does not need to be unstored. Those fields, Active and Address both exist in the same table, right? If so then go to Storage Options on the Nickname and uncheck 'do not store'

  • Author

Thank you so much, LaRetta. I've followed your advice and all seems to work perfectly now. My Nickname field only populates if Active is set to Yes, and my value list has returned.

Have a wonderful day, and thanks again.

Kevin

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.