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.

Scripting If..Else Pop-up lists

Featured Replies

Hi,

I was wondering if it is possible to do a If..Else structure in such a way that when I select a certain field from a pop-up list, the pop-up list used by a second field is different. Made no sense? Well, to explain it a little bit further, suppose I have two text fields called Country & Culture (Both use pop-up lists). For every country, there is a separate list of cultures. Can I define various different value lists for these cultures, & make it so that the field knows which value list to use depending on the country chosen? Or is there another way to acomplish the same without using pop-up lists etc.

This is a database that is fianlly going to be printed out for a museum, so both country and culture should show in the print out & the screen.

Thanx a lot!

Shaunaq

Look up heirarchical value lists on John Mark Osborne's www.databasepros.com. It will allow your value lists to change based on the value of a field.

These are also called conditional value lists. I think there has been a thread on this recently somewhere in this forum. Check the value lists forum.

Hi,

AS goosetree said, conditional value lists.

The easiest way to get this information is if you have a second database.

This database has two fields, country and culture.

Create a record for each country and the relevant culture. You will end up with many records for country, each with a specific culture.

Now, in your main database, create a relationship, from country to country in the new database.

Now, your culture value list. Specify use values from a field, then choose the show only related values. Select your country::country relationship and choose culture as the field to get the values from.

Now, when you choose a country, only those cultures that match will display in the second value list.

HTH

  • 2 weeks later...

Thank you so much Andy! I have posted similar questions trying to figure out how to do this and many people offered help. Your post was the first one, however, that made sense to my admittedly feeble mind. I just followed your advice step by step and viola! CONDITIONAL VALUE LIST! YEAH! One question though. Is it possible to set the order in which the values are listed in the conditional value list? In the above example that would be the cultures. It seems as though they are listed alphabetically and I would prefer that they be listed in the order in which I entered them.

Thanks,

Joe smile.gifsmile.gifsmile.gif

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.