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.

drop down menus (HTML)

Featured Replies

okay kiddies. this is what i need:

two drop down menus. the items of the second menu depend on the first. it is actually a sort of submenu. for example, the first menu may have the items:

Breakfast, Lunch, Dinner

and depending on what is selected in that first menu the second menu may have:

Eggs, Toast, Waffles

-or-

Sandwich, Soup, Pizza

-or-

Chicken, Beef, Rice

make sense? thanks in advance.

timmy.

We've had to do this before, although it wasn't web related. I hope this info is helpful anyway.

Create a separate Values File with a relationship.

File A is the File you need the drop down menus.

File V is the Values List File

In File A - create/set a global field to "top".

In File V - Field A would be "Top". Field B would be the top level menu items. Create a record for each of the top level menu items. Make sure that Field A is always "Top". (this is for the FIRST menu level)

Create a relationship from File A to File V that relates the Global Field in File A to File V - Field A. Create your top level value list based on this relationship.

2. Then, in File V, create a new record for each sub menu item. Field A is the top level menu item that the sub menu is associated with. Field B is the sub menu item. (if you are building a sub sub menu, then field A is the parent menu item, and Field B is the child menu item).

3. In File A create a relationship between the First menu item to Field A in File V. Then, base your value list for the second pull down to this relationship.

Repeat steps 2 & 3 until you have all of your submenus in place.

I may not have done a superb job in explaining this. I can clarify if it is useful info.

Hope this helps.

  • Author

okay. i used the Javascript solution. the only problem is I am using CDML tags within the script. [FMP-record] and stuff like that. and it seems that the tags within Javascript are not being processed. is this correct? any advice?

  • Author

okay. i used the javascript and got it to work. slight modification to the problem. i want selecting an item from the second menu to follow a hyperlink. i've done this before by having <option value="URL"...

and then having a javascript function handle linking this upon selection.

however, since this second submenu is created by the javascript function you supplied above..... i'm confused. any help would be appreciated. thanks a ton,

tim.

The URL will need to be a field in the database associated with that choice. I can see your repeating field approach falling apart about now.

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.