I tried the demo by click copy then paste into Notepad and found nothing has been copied to the clipboard.
Hi Ruttanachai Auitragool,
I'm not aware about this component but I do have a solution for your requirment.
See this sample app
Please find the attached .oml file
JavaScript Code Snippet
"var textToCopy = document.getElementById('" + Input_UserInput.Id +"').value; navigator.clipboard.writeText(textToCopy) .then(() => { alert(`Copied!`) }) .catch((error) => { alert(`Copy failed! ${error}`) }) "
Hope this helps you!
Regards,
Benjith Sam
Benjith Sam wrote:
Thank you Benjith,
Your solution is the best. I'm looking for a pure JavaScript solution to use in the OutSystems project and this is works.
Ruttanachai Auitragool wrote:
You are welcome, Ruttanachai :)
I'm happy that it helped you :)
dear Benjith Sam
when I run the method [navigator.clipboard.writeText] at my platform , the method [writeText] not defined error message is outputted.
Could you tell me if which compoent is not enough at my platform .
hongquan ji