...
This best practice suggests you use a "class prefix" for custom functions which deal with certain FileMaker elements. Here is an example of script code:
| No Format |
|---|
If [ Get ( LayoutName ) = LayoutIsCustomerDetails ]
# Do layout specific steps here...
End If
|
...