Nguyen-Anh Le
Hi all,
I’ve found similar threads, but I don’t think I’ve seen one on this exact scenario yet. Your help is appreciated.
I have a javascript function that I defined inline in a Custom HTML control.
<script> function hello() { … } </script>
Now let’s say I have a button, and I want to invoke this function after an onClick event. When I put in code like hello(), it says it can’t find it. I’ve also tried things like ${CustomHTML1}.hello() and page.ui.get(“hello”)… but I still can’t seem to reference this function. Any ideas? Thanks!
SPARK Support
Hello Nguyen,
If you are attempting to call this from an Event, you should be able to call @hello(). Keep in mind that you are unable to pass arguments with this style.
Regards,
Stephen P.