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.

RUnning a script upon selection within a popup men

Featured Replies

Hello,

Is it possible to run a script upon selection or change of a pop up menu, which is similar to the onchange or onSelect events at javascript...

And for sure, I want to transmit the selected value to another script as a parameter to do something else on the database...

WHen I specify the popupmenu as button, it can not be opened at all...

I strongly think that this should be possible in FM7 confused.gif, however I could not manage it, and I can't find a related post...

Any suggestions

Best

I strongly think that this should be possible in FM7

And both of you are absolutely sure this is a recognizable touch and feel of a genuine mac application???

This is a FAQ and you might consider reading the links mentioned in this thread:

--sd

You can create a loop the looks at the popmenu.

I use a script that looks like this-

Set Field [ global ; menuField ]

Loop

Exit Loop If [ menuField (not equal to symbol) global ]

Go to Field [ menuField ] (this step will open the menu and allow it to be changed)

Pause/Resume [ Duration (seconds): 1 ]

End Loop

Add the rest of your script after that to do what you need with the new value.

Hope that helps.

  • Author

Dear all,

Thanks for your efforts, I think I can manage this by combining all of the informations you gave,

By the way, I am really sorry for not being able to find the other thread related, but this is really a huge forum...

Best

Isn't it?

The issue to be aware of is that, it's ment for distinctive pages ...where scripts can be tough to establish a rollback feature for - if not restrained properly. Setting a sortorder or such for a portal is OK, but from there to say performing imports/create records or modify records - Apple's rule mentions "nouns" as the kind of words to be chosen from in such a popup. So deletion of an entire portal of records requires both the popup and a button next to it carrying the "verb"

This webpage are pretty correct in it's approch by 1) choose a noun and 2) press a "Go" button. But it's also kind of the engineers approach never to fiddle with more than one parameter a the same time ...in order to be able to go back where you came from ...well this is what I was taught as soundengineer apprentice???

--sd

  • Author

I want to say that i solved my problem, but I unfortunately understood that it is more simple than executing a script, I just wanted to change another field upon changin other field instantly...

FM7 already does this by giving an auto enter calculation to another field...

I just want to share...And when you unclick "Don't replace existing value..." Everything works very good, as I wanted...

Flexible solutions from FM7 smile.gif

I agree, but only partially.

The question was about triggering a script by changing the value in a pop-up. Whether this is good UI or not depends on what the script does.

Sometimes even creating a new record is acceptable in the context. See, for example, System Preferences/Network/Location, with the following values in a pop-up:

Location 1

Location 2

----------

New Location...

Edit Locations...

  • Author

comment, I thought that my problem was triggering a script to change another field...

But in the particular case of changing another field upon a change on another field, it might be done by giving auto enter calculation....I realized this later on...I am sorry

However, I want to say one thing which I forgot in my previous comment....This topic is of great use for me, because I will use this script trigerring from pop up menu, too in my databases...

Again thanks for your efforts, and Best wishes

  • 4 weeks later...

Just wondering if you can use this kind of solution to choose between different scripts from a pop up ? I am currently still using FMP 5...??

any info gratefully recieved!

... smile.gifwell I seem to have found that the combination of a button and a pop down

works to some degree...so that's progress, beats having loads of buttons all over the layout!!

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.