Triggering script on new record creation?
Is it possible to trigger a script whenever a new record is created in a specific layout?
No, but you can put a button on your layout to a script that includes New Record/Request to start a new record. That's how we've worked around this for years. If you have filemaker advanced, you can even customize your menu so that New Record and it's keyboard short cut perform your script instead of the simple New Record step supplied by filemaker.
oh, so that's why I can't find any solution :D Thank's a bunch!
Long before trigger scripts arrived in FileMaker 10, I created an OnNewRecord script that is triggered by an OnNewRecord field with this Auto-Enter calculation:
Let ( sink = S4HU_EventScript ( Get ( FileName ) ; "OnNewRecord" ; "" ) ;True)
S4HU_EventScript performs a script in a named FileMaker file, passing a script parameter (in this case, an empty string).
S4HU_EventScript is a function from Softwares for Humans' EventScript plug-in (donationware):
myFMbutler's DoScript plug-in (freeware) is an alternative to the EventScript plug-in:
Retrieving data ...