Script Triggers & “Surfacing”

For our Repeating Events control (below) we decided not to use any value lists since they are kind of a pain to copy from file to file. Instead we’re using simple layout objects with conditional formatting on them so you can paste this layout into your file without issues.

The conditional formatting depends on some initial $$variables we’d normally set in the script we use to call this layout. But we’re also setting those initial conditions with an OnLayoutLoad script trigger. We’re doing this for developers who may go down into layout mode and then “surface” on this layout without having run the script we intended. This way the layout will look right and continue to function even if you get there some way we didn’t intend.

Of course, the OnLayoutLoad version of these initial conditions includes a short circuit on the Continue button since when arrived at outside the normal workflow, this layout doesn’t know which appointment or event it is supposed to operate on. Clicking “continue” in this case shows a message such as “Normally we’d apply the repetition rule you see here to your event, but in this case we’re not sure which event you intended to apply this to. To try this again, click ‘repeat’ beside an event to bring up this layout as part of your workflow.”

We’re trying to build the scripts for two audiences: the user who runs the scripts as part of their workflow, and the developer who may be just screwing around or exploring.

Featured Posts

Follow Along

Stay up to date with the latest news & examples from SeedCode

3 Comments

  • Hey John,

    I REALLY like your design for this feature. Very clean. Nice use of conditional formatting to avoid value list shortcomings!

  • Of course. And now we’re showing the repetitions in a list (instead of a portal) so it is easier to make batch changes as well using FileMaker’s build in Replace command. All about making it simpler.

  • Kyra

    This is amazing. My only question is does using this repeat function still allow you to go into the individual events and make changes to JUST that one event?

Leave a Reply

Your email address will not be published. Required fields are marked *

Check out some of our other posts ...

Add Jobs to a Mapped Route in FileMaker

See When Assets are Passing by Unscheduled Jobs Showing unscheduled items on the map lets you see when a route is passing close to jobs you need to schedule. As you click on each truck, you’ll see it’s route for the day and find unscheduled jobs that would be good

Read More »

Scheduling Teams and Equipment

Seeing Availability at a Glance We recently customized DayBack for a customer who wanted to consolidates all the decisions of team assignments into a single screen. When a dispatcher clicks on a job, they can schedule the entire field team (technicians, lead, vehicle, departure plan, and equipment) without leaving the

Read More »
Schedule Crews in FileMaker

Crew Assignment and Scheduling

We often see folks struggling to schedule both crew membership and crew assignment. This is particularly tough if crew membership can change with the different roles required on different jobs. The interface below helps a great deal. You can see the crew leads, with red icons, and the crew members

Read More »

FOLLOW ALONG

Stay up to date with the latest news & examples from SeedCode

© 2026 SeedCode, Inc.