Copy to clipboard do not work on Html5?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I think it was not implemented originally because at that time it was not working on some browsers and/or you needed to implement this in an input event (like button click or key event) to avoid confirmation message boxes. I'll check it.

  • Hi,
    I am trying to use "Send text to clipboard" action of the Special Object and it does not function.
    I will try to use the document.execCommand("copy") method in a function that will be triggered on user click. but it would be nice to have this feature in HTML5.
    Is this possible?


    Hristos,
    Please login to see this link.

  • Ah yes, I forgot about this. Yes you can use a Javascript function. I quickly searched for some solution and you can do this:

    1. Add the following code to your HTML file:

    2. In your MFA add a HTML5 object, and call the CopyTextToClipboard function like this:

    HTML5 : Reset Parameters
    HTML5 : Add String Parameter "random text to copy"
    HTML5 : Call Function "CopyToClipboard"

    Note: as I said above I *think* you can do this only from a user input event, e.g. User click condition and/or Button click condition.

    Note 2: we'll implement this function in a future update.

    EDIT: I tested it on latest versions of Firefox, Chrome, Edge and Opera. Not tested on Safari. In theory it should work on older browsers too.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!