Your Script is tripping its own script trigger since New Window will also trip the OnRecordLoad trigger.
If [CONTACTS::ContactType = "Business" and not $$TriggersOff ]
Set Variable [$$TriggersOff ; True ]
New Window [Name: "Business Contacts"; Height:450; Width:550; Top: 200; Left: 250; Style: Floating Document]
Go to Layout ["Business Contacts" (CONTACTS)]
Set Variable [$$TriggersOff ; False ]
Go to Layout ["Contacts" (CONTACTS)]
It's often a good idea to enclose all trigger performed scripts in if blocks that all check the same global variable and do nothing if the variable is true. Then any script that might trip a script trigger can set the global variable to True near the beginning of the script and set it back to False at the end to keep the script from accidentally performing triggered scripts.
Thank you Phil, for your reply and helpful explanation.. I would not ever have figured out using the global variable and will now go back and add that feature in other trigger performed scripts.
After I posted my question I did some experimenting and found that I could accomplish what I wanted by using a GTTR in new window and that eliminated using the New Window script step. But THEN (in the middle of the night) I realized that I was making it way too complicated. All I needed to do was to put the fields for individuals and the fields for business on different tabs on the same layout, name the tabs, and use a Go to Object script step based on the value of ContactType. I set the script trigger On Modify to the ContactType field, and On Record Load to the layout setup. Here's the script:
If [CONTACTS::ContactType = "Business"]
Go to Object [Object Name: "Business"]
Go to Object [Object Name: "Individual"]
Can you see any reason this will get me into trouble??
On another problem - I recently made a post about how I somehow have made the default # copies = 3 when printing to either of my MFP, but not my laser printer.. Could you please look at that and see if you have any ideas? I am baffled...
That looks like a much better way to go. Don't see any issues with it.
I looked at your thread when you posted it but chose to pass on it. (I've been recovering from Pneumonia and over the last few weeks often reached a point where I didn't have the energy to tackle as many posts as I might have otherwise.)
Thanks - sorry to hear about your illness and hope you are soon fully recovered.