Copy to clipboard from application

Hello everyone!
I recently tried adding a Copy to clipboard button to my view application. It worked perfect running local but in the monday iframe it didn’t copy at all… After a quick lookup at the internet I saw it can be blocked inside a iframe :cry:
This is the 2 code I tried -
First try - navigator.clipboard.writeText("Hello world!);

Second try (I know its depricated but people said it can work -
var textField = document.createElement(‘textarea’)
textField.innerText = “Hello World!”
document.body.appendChild(textField)
textField.select()
document.execCommand(‘copy’)
textField.remove()

Hope someone can help me :slight_smile:
Thanks!