July 29, 200421 yr Newbies Is there a way to trigger a script to run as soon as a user makes a selection in a field formatted as a pop-up menu? I know in access there's a way to set up a field to run a particular action any time the data in it is updated... is there a similar Filemaker function? Thanks!
July 29, 200421 yr On Windows, yes. Format the field as a pop-up menu and disallow access to it. Then set it as a button attached to a script to Go to Field [yourfield] Pause/Resume Script [0:00:01] {continue with desired steps once selection is made}
July 30, 200421 yr It's no different in OS X Set the field as a button and attach a script I would probably write it with a validator, SetField [Global = yourfield] Go to Field [yourfield] Loop Pause/Resume Script [0:00:01] Exit Loop If [yourfield does not equal Global] End Loop Phil
July 30, 200421 yr It may be different in that a list should be used instead of a menu. Also, the loop is required, whereas a Pause is sufficient on Windows, since FM is frozen until a selection is made, the layout is clicked, or the user navigates to a different program.
August 8, 200421 yr i don't understand what is involved in making the popup menu selection in a field & having the field formatted as a button. are there two objects involved that are layered together? i use that with two fields on top of each other with entry into the top field not allowed in order to select the rear field. but in this case with a button involved i don't know what to do. what am i missing? thanks
August 8, 200421 yr There are various plugins that accomplish this also. It doesn't seem that eepmatt has mentioned what version of Filemaker they are using. There is a free plugin with excellent examples available for FM7, look on Versiontracker for EventScript. He has done some clever things with privilege sets that allow you to trigger a script upon ENTERING a field, as well as upon exit.
Create an account or sign in to comment