Hi, new user here. . . I can’t seem to find out how to add a JS function to a button click. For example, I want to open a new window via JS when the user clicks a button. I can add it manually to the HTM file, but is there a way from within the ForeUI app?
Hi John, you will need to define the behavior for the button in the “Bahavior” view. You can follow this document to do so: http://www.foreui.com/doc/html/elemen…
In the example you mentioned, you will need to handle the “Element Clicked” event for the button, and use the “Go to URL” action to open new window in the event handler. You should have behavior defined like this:
Hi John, well it is possible, but that is kind of hack instead of officially supported feature.
This question is now closed