No problem, and I was able to get the script to work by removing, PrintButton1.execEvent("click") after "Please Complete Customer B Information!", however, I had to keep this in order for it to work,{ ; } } After looking at your second code it looks like I needed to remove the first curly ...