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.

Creating Fields Dynamically

Featured Replies

Hello!

Does anyone know if you can create fields in FMPro 5 dynamically, based on the selection of another field? Logically, something like this:

if (popup list) = x then insert into layout x fields x, y, z

if (popup list) = y then insert into layout x fields a, b, c

Thanks,

J

Design functions, such as creating layouts, fields, scripts, or altering any of them, are not scriptable within FileMaker. It's probably possible to script them using something like QuicKeys or OneClick, but there may be another way to do what you want.

I'm guessing that the purpose of this is to show certain information or hide it depending on selections made by the user. This can be accomplished in at least two ways.

The first is with multiple layouts. Each layout has fields present depending on possible user options. Which layout is entered is controlled through a script that detects the user options and takes the user to the right layout.

The second solution is more complex. It involves a feature of FileMaker that portals will only show the information within them when the relationship they are based on is valid. So you could place a field that you want to have appear and disappear based on user options inside of a portal that is only valid when the user options are correct.

Try going to databasepros.com and searching for "disappear". I believe there is a technique file that will demonstrate this fully.

Chuck

  • Author

I'll check out databasepros.com but unfortunately I don't think the idea of having separate layouts will work in this case. Thanks for your help!

-- J

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.