I'd like add a button and let performers to copy some text to their clipboard once they click on the button. However, I found:
- the element interface { {button}} does not accept an "on-click" property
- the original html button tag may work, but when I add the the function to the on_click property and the js section, the page returns the error "the function does not found". So, my question is, how I can add a user defined js function to a project? Is there any example code/project I can reference to?
Try to add the following code in TASK INTERFACE in your project:
in onRender() in JS field: