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.

show a related field IF....

Featured Replies

I have a database that identifices species.

The idea is that if we know for sure what the Genus is (a Y/N field denotes this), we can pull the Family and Class out of another database. However, it's not always the case that we're sure the Genus is correct, and in that case we need to be able to manually enter the Family and Class

What's the best way to do this?

My first thought was a calculation (case KnownGenus=Y, Rel::Family,"") , but of course you can't modify calcuation fields.

the other idea I had was to put the above calcuation field *behind* a user editable field, but that might look ugly if the user doesn't change the data after KnownGenus is set to Y

I thought a little about lookups, but we'd really like to keep it a relationship so we don't have to worry about relookups if the master classification database changes

advice?

TIA

I always create a calc field in which data cannot be entered. This is where the "final" determination will show up.

Directly behind it is an entry field where the manual entry is done. Since the calc field has user entry disabled, when you click in the field you're actually clicking in the manual entry field behind it.

The calc field returns the calc if the manual entry field is empty; otherwise it returns the contents of the manual entry field.

In your case, you can have the calc field return the calc if "Yes" is checked, and the manual entry field if it isn't.

  • Author

ok, that's what I was thinking of doing.

but what if:

"yes" is NOT checked, and the user inputs their own value in the entry field behind

then yes gets checked and the field in front changes to something else. won't I have a garbled mess with two non-empty fields on top of eachother?

I do something similiar. Have the calculation field with the default answer. Then have a second field, which is the manual field, that allows you to change it. Then I have a button, that is attached to a script that simply when pushed populates the manual simple text field with the calculated field. So, if I know that the manual field is the default field (or in your case Genius = "yes") then I push the button and populate the field. Otherwise if (Genius = "no") leave blank so user can type it whatever he wants. Of couse I just do not display the calculated field.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.