I have a layout, call it ExperimentsLayout, based on my database table Experiment, which is related to table Scientist via foreign key relationship: Scientist.Id -> Experiment.ScientistId.
Users of my database (scientists) are still somewhat new to FileMaker, and I expect a relatively steady influx of FileMaker novices in the future, so I want to design in a way that minimizes the likelihood of user errors that could compromise data integrity.
In my layout ExperimentsLayout, I have a drop-down list box for Experiment.ScientistId. Once the ScientistId has been entered, I would like to either:
- totally prevent it from being changed, or
- throw a confirmation popup, to make sure this change is intended
- in some other way prevent the
Experiment -> Scientistrelationship from being unintentionally changed
When a user is browsing an ExperimentsLayout, I'm finding that sometimes they are changing the ScientistId in Browse mode instead of Find Mode, thinking that this is how to pull up the order(s) associated with the other scientist--but what they're actually doing is changing the scientist that the Experiment record is related to. As a relatively new user to FileMaker myself, I totally understand why users would make this mistake, since the UX distinction between Browse and Find mode is very (shockingly, to me) understated. This is a ticking timebomb for science data integrity problems.
If you are happy to handle it on the layout then the easiest and most flexible way to handle it is to add a script trigger to the field for
"On Obect Enter"."Set Script Triggers...""OnObjectEnter"You can use the script to exit the field or show a confirmation box etc.
Alternatively