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.

Value List and Script

Featured Replies

  • Newbies

I am attempting to have a script be called as son as a value as been chosen from a value list.

Can it be done?

using FMP 5, windows

ex : I choose from a list containing customer names and IDs, and as soon as one is selected I want a script to copy all teh data from that customer into the fileds.

(customer data is in a separate file, I know how to make teh list, and the script, but not how to get teh script be called as soon as a value from the listr as been chosen)

quote:

Originally posted by Vempyre:

I am attempting to have a script be called as son as a value as been chosen from a value list.

Can it be done?

using FMP 5, windows

ex : I choose from a list containing customer names and IDs, and as soon as one is selected I want a script to copy all teh data from that customer into the fileds.

(customer data is in a separate file, I know how to make teh list, and the script, but not how to get teh script be called as soon as a value from the listr as been chosen)

I can think of two ways to do this.

The first is to use a relationship based on the value in the menu. The menu is set to a global field related to the information you want to show. When it has a valid value, you will be able to see the related information.

However, it isn't a copy of the related information. It's the original data.

A second way to do this would be to enter a script that checks the value of the field with the popup, and sets this value to a global field. The script loops through, perhaps pausing for a half second or so, and each time checks to see if the value in the field is still the same as that in the global. If it isn't, then the loop exists and performs the steps you want.

Chuck

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.