[ad_1]
Hello @edwardtsai
Thank you very much for using our plugin. Please, follow the steps below:
Insert an “HTML Content” field in the form and enter the following piece of code as its content:
<script>
function copyElementToClipboard(element) {
window.getSelection().removeAllRanges();
let range = document.createRange();
range.selectNode(typeof element === 'string' ? document.getElementById(element) : element);
window.getSelection().addRange(range);
document.execCommand('copy');
window.getSelection().removeAllRanges();
}
</script>And finally, enter the following code as the onclick event of the button field:
copyElementToClipboard(jQuery('.cff-summary-field')[0]);Best regards.
