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
3 replies
-
I also need to copy text within a specified field. Are there any new methods? Thanks.
-
yes, i am also using this function for Drift Boss , it is really useful for me
-
I also use this clipboard feature on my page because it makes copying information much quicker and easier. It’s a simple but useful addition that saves time and improves the overall experience. By the way, the Nicolas Cage snakeskin jacket has a really distinctive design that caught my attention.
Content aside
-
1
Likes
- 18 hrs agoLast active
- 3Replies
- 656Views
-
4
Following
