Mate, I had this exact problem and the same experience of going around in circles for hours. I'm still an old-school LC Designer developer and I'm eager to get the code right. Your code helped me and I'll share mine in an effort to iterate towards a final acceptable method.. var copyText = document....