1

Copy to Clipboard

Is there a Ninox function now?

I was looking for a way to copy the content of a field and found this post from way back:

html("<button onclick='copyToClipboard(""" + concat(SERIAL) +
""")'>Copy to clipboard</button>
<script>
function copyToClipboard(str) {
var el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
}
</script>")

This copies the content of field 'SERIAL' only.  To copy the entire record replace SERIAL with (this).

Is there a better method available now?  The post is 2 years old and can be found here:

Copy to Clibboard button - Get help - Ninox Community

1 reply

null
    • gold_cat
    • 1 yr ago
    • Reported - view

    I also need to copy text within a specified field. Are there any new methods? Thanks.

Content aside

  • 1 Likes
  • 1 yr agoLast active
  • 1Replies
  • 389Views
  • 2 Following