• Nguyen-Anh Le
    October 26, 2017 at 1:17 pm #4758

    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
    October 26, 2017 at 1:21 pm #4759

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search