Jump to content

This topic is 8367 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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.

This topic is 8367 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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