Adding Script to data fields
I would like to be able to add a new record by hitting Return/Enter after inputting the last data field. In Access, we could add code for actions performed in the data fields. Is this possible in FMP?
In FileMaker, these are called "script triggers". In your case, you can use either an OnObjectExit or an OnObjectKeystroke script trigger on the last data field to perform a script to create the next new record. With OnObjectExit, make sure that behavior in the Inspector specifies the correct key or keys (such as enter) exits the field. With OnObjectKeystroke, you can use the code function to check and see what keystroke triggered the script.
When I go to Layout Setup and then select Trigger Script, I cannot find OnObjectExit or OnObjectKeystroke. Am I going to the correct place to add a trigger script to the data field?
The triggers in Layout Setup... are those that apply to the entire layout--not a specific object in the layout.
First select the field, then right click and specify script triggers....
Retrieving data ...