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
2 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 
Content aside
- 
    1
    
      Likes
    
- 9 mths agoLast active
- 2Replies
- 562Views
- 
    3
    Following
    
