I recently copied a button element from one solution to another. The source solution had a script named "New Purchase Order," and so did the target solution. When I pasted the button into the target solution, the button had taken on the script in the target solution as its action.
This seemed funny to me because I thought that FileMaker maintained button behaviour by internal script ID. After all, whenever I paste elements from one solution to another which are related as external sources, FileMaker has always opted to maintain the script from the external source. As in the case outlined above, because the two solutions were related as external sources, I'm very surprised that it took on the script by name in the target solution.
Can anyone shed light on how FileMaker makes these decisions? It definitely caught me by surprise.