Jump to content
Sign in to follow this  

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

Recommended Posts

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.

Share this post

Link to post
Share on other sites


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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    Oliver Reid 

Important Information

By using this site, you agree to our Terms of Use.