I figured out the problem. I was pressing return to exit a field. This activated the slide. However according to the tab order, the 'next field' was on the slide menu I moved away from. So it moved the slide back. When I changed the tab order, the problem went away. Not the first time the whole tab order thing has caused me problems. I kinda don't like the way it's done done tbh.
I was pressing return to exit a field. This activated the slide.
There's another solution. End the script with Exit Script [False]
When a script is performed by a script trigger that performs the script before processing the triggering event, you can use this step to cancel out the triggering event.
See Setting Up Script Triggers in FileMaker help to learn more about this. (There's a chart that shows which triggers are "before the event" and which aren't.)
Thanks- that's actually going to come in very handy.