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.

A dropdown list attached to a value list that performs multiple scripts: Problem

Featured Replies

Hi, right now I have five buttons each of them performs a different sort script, I would like to get rid of the multiple button and make a single dropdown list (attached to a value list) so that the user select the first option the script performs another script (formerly the 1st button), if the user select the second option the script performs the second script and so on. Now, once I created the value list and attached it to the new field I am rather clueless on HOW to instruct FMP to perform a different script depending on the values of the value list.

Can someone with a knack for scripting help me out on it?

Thanks in advance.

Try

If[YourSelectionField = "Choice1"]

	 Perform Script["Script1"]

End if

If[YourSelectionField = "Choice2"]

	 Perform Script["Script2"]

End if

If[YourSelectionField = "Choice3"]

	 Perform Script["Script3"]

End if

# etc

This script would be called by an OnObjectModify script trigger in YourSelectionField.

  • Author

Thank you, that did work like a charm.

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.