Triggering upload by clicking on icon

Hi Bubblers,

I’m trying to trigger the upload by clicking an icon and searching through the forum, I’ve noticed that there are a few threads on this topic but there doesn’t seem to be a consensus on how this can be achieved.

The one solution that most people seems to claim to work is to use the JavaScriptinBubble function of the Toolbox plugin and run the script:

document.getElementById(“id-name”).getElementsByTagName(“input”)[0].click();

But when I tried that, the editor came back with an syntax error. Screen shots below.


Here I’ve defined the Element ID for the FileUploader


Here, I’ve set up the JavaScript to be triggered when I click on the icon


Here is the error that was provided.

I have no knowledge of JavaScript so I’m really not sure what I’m doing wrong.

Can someone highlight where my syntax was off?

Thanks,
FundKernel Development

This topic was automatically closed after 70 days. New replies are no longer allowed.