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.

Filling Field B with data triggered from Field A

Featured Replies

Hello, would love to RTFM (and have Nolan Hester's beginners book as well as Cynthia Baron/Daniel Peck Advanced) to find my answer but apparently the words are getting in the way. My Senior Engineer refers to this problem/solution as using Jump Tables but I can't find anything like this. confused.gif

Point me in the right direction please (Windows users): Field A provides test type. Field B provides the associated report type. Is there an easier way (other than If-Then-Else) to trigger the correct report type based on the test type selection? Both fields are in the same db. It appears that it would be simple if the fields were in different databases.

Much obliged!

Lisa

Do a search on this site for +conditional +value +list or +conditional +valuelist. You'll find some examples of what you're looking for.

Hi Lisa. Have you tried auto-enter looked-up value in the Define fields dialog? It sounds like that could work for you.

Create a relationship from Field A to Field A, called SelfFieldA. Now in the field definition for FieldB, select Auto-Enter>Looked-up Value. Select the relationship SelfFieldA and then the field FieldB. If the report type is consistent for each test type, i think this will accomplish what you are looking for.

HTH.

Jerry

Hi Lisa,

Another great resource is FileMakers Online Help that is available when FM is open.

Open the help and in the Index window type or paste the following:

Defining a list of values for data entry

HTH

Lee

cool.gif

  • Author

Hi Jerry, I must be doing something wrong. I want to make sure I understand you correctly. The first Field A should be the test type and the second Field A should contain values for the corresponding report type?

Thanks for walking me through this!

Lisa

  • Author

Thanks Lee but the system I have FMP on is a closed system and I don't have access to on-line help. frown.gif

Well, let's say you have a file called Foods.fp5. Some sample data:

 

FoodType     FoodName

--------     --------

Fruit        Apple

Fruit        Orange

Meat         Salami

Vegetable    Celery

 

Now, every time you enter "Apple" into the FoodName field on a new record, you want to have "FoodType" automatically filled in with "Fruit."

I'll pause now to point out that if this is not at all similar to your question you can just ignore the rest of this.

To implement this, you would first create a self-join relationship from Foods::FoodName to Foods::FoodName. Now, in your field definitions, double-click on FoodType. On the Auto-enter tab, select Looked-up value. Choose the relationship you have created, and then under that, the field FoodType.

See the attachment to watch this in action.

J

foods.zip

  • Author

Thanks Jerry! That is exactly the scenario I'm talking about. I got through most of it but am having a problem getting the 'FoodType' to auto fill. Let me noodle through it and I'll let you know if I was successful.

You DA MAN You-Rock.gif

It should auto-fill whenever you enter an already-existing FoodName into the FoodName field.

  • Author

You're right, I believe I have a mapping problem between the two fields. I'll keep you posted.

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.