[Clipboard.js] How to get it functioning

[Clipboard.js] How to get it functioning

Forge Component
Published on 2016-12-14 by Remco Dekkinga
4 votes
Published on 2016-12-14 by Remco Dekkinga

Remco hi,

I am trying to get the widget to work, see picture.I have the webblock pointing to a widget (the expression above it). The TransactionGroup button has an empty action. When I click the button, the content of the expression does not get copied to the clipboard, even if I change the button to a picture. The clipboard basically stays the same.

My goal is to somewhat recreate the expression builder capabilities for example when you edit the filter in an aggregate, so if a button is pushed, some text is copied to the clipboard that i can later paste in an input widget. The paste is manual then.

Your help is welcome.



I just ran a couple of tests and the Clipboard.js seems to be working fine when using an image as the trigger. Have you tried doing just a simple new form with a static expression just to isolate if it is working at all. Maybe if you could upload a simple espace with the issue we could have a look. Also is you browser reporting any javascript errors in the console (Press F12) ?