Script Trigger Issue

Discussion created by kaiviti on Nov 1, 2013
Latest reply on Nov 2, 2013 by jbante

I have set up a script to sort records on a field into only those that match the same data in a field on a different layout. I have used a local variable to set the field on the layout I am looking at. The script works fine when I am in any layout but, when I set it as a script trigger for "on layout enter" the whole filemaker program freezes. I have to force quit to get out of it. Below is a screen shot of the script. Any ideas on what is going wrong?