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.

How to get Fields to appear based upon another field value?

Featured Replies

Hi,

I am struggling to build a relatively simple application for my father. Please forgive me if this is an obvious question.

I would like certain fields to 'appear' or only become 'active' if a related field (in the same database) contains a certain value.

So, if the field PASSPORT_CHECKED contains the value YES

I would like another field PASSPORT_NUMBER to become active.

I find it confusing when the PASSPORT_NUMBER field is active even if PASSPORT_CHECKED is set to NO.

Am I missing something very basic here?

Thanks

James

There is a "trick" you can use to do this. Create two fields:

One (calculation, number, indexed) = 1

Show (calculation, number, indexed) =

(PASPORT_CHECKED = "YES")

Create a self relationship with Show <---> One

Create a single row portal with lines and fill set to transparent. Place the PASSPORT_NUMBER field and its field label inside the portal (NOT the REL::PASPORT_NUMBER field, just the PASSPORT_NUMBER field).

When the relationship is invalid (Show = 0), the contents of the portal will be hidden.

-bd

  • Author

Thanks for the reply... it sounds like this is not a simple problem!

I will try it out!

James

You could also write a script to do this.

It won't make the passport number field appear or disappear like live oaks, but you won't be able to enter any information into the passport number if the passport checked is not yes.

Script - Passport number

If (Passport checked = "No")

Exit Script

Else

Go to field {Passport number}

Endif.

In layout mode, select your passport number field and choose format button, then choose perform script Passport number.

Set the option to exit.

Create an account or sign in to comment

Important Information

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

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.