Team_Kinnect
4 months agoQrew Trainee
CopyText.html code page
Has anyone had success with the CopyText.html code page?
I have implemented it an application per instructions from the Code Pages app and when I click on the URL button, a new page opens with only this text on it: "This page will close momentarily."
This is the URL formula:
URLRoot() & "db/" & AppID() & "?a=dbpage&pageID=27©Text=" & URLEncode([Notes])This is the code page:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
This page will close momentarily.
<script>
let urlParams = new URLSearchParams(window.location.search);
let copyText = urlParams.get('copyText');
navigator.clipboard.writeText(copyText).then(function()
{
setTimeout(function () {
window.close();}
, 250)
})
</script>
</body>
</html>
<!--
These code samples are provided "AS IS" without any warranties of any kind and is not supported by Quickbase teams.
You are responsible for the security and maintenance of any third-party code inside of your application.
Any reliance on Quickbase functions, HTML, CSS or other document-object-model (DOM) elements should be considered unstable and may change at any time, without notice.
Builders should not reference or rely on common libraries hosted by Quickbase (such as jQuery or Angular) as these may change at any time.
Customers should reference their own hosted libraries or from 3rd-party resources that they can trust and maintain
-->