How to perform Javascript function using a button in UI Designer

1
0
-1

I have an HTML file that calls certain functions of a javascript file when a button is clicked. I've been able to import a javascript file into the UI Designer but I can not make a button that performs a certain function of that javascript file, is it possible?

2 answers

1
0
-1

Copy your JavaScript file code in a JavaScript asset.
On my previous answer the is a link to download custom button which call JavaScript asset.

Comments

Submitted by romualdo.s.rs on Mon, 07/16/2018 - 16:47

My need in fact is, do I own a javascript file with N functions within that file, is there any way to call a particular function of that file when I click the button? As if it were the onClick () function in HTML file that takes functions from an external javascript file?

1
0
-1

Comments

Submitted by romualdo.s.rs on Mon, 07/16/2018 - 13:22

The only difference is that for me this javascript file is an asset, I can call an asset with a custom widget?

Thank you for your help

Notifications