App Lab: onEvent - not all code seems to run


Hi Folks,
I have a student that has created an onEvent where some aspects seem to run and others do not. The rest of her code looks fine and we have tried to troubleshoot from a variety of directions, but nothing seems to work.
In the below code the onEvent works as intended by setting a new screen

  • However the console does not print the message “Rules Button clicked”
  • The “screen changed” console log does not print.
  • the function drawAllBubbles does not get called
  • However, the final console log does print.

onEvent(“rulesButton”, “click”, function( ) {
console.log(“Rules Button Clicked”);
console.log(“screen changed”);
console.log(“End of on event”);

Any help or suggestions would be greatly appreciated.45%20PM


Hello @jhamilton - I’m not sure what’s happening here. The code is correct. I even copy/pasted it to a new project to make sure there wasn’t some hidden syntax.

If the project is still not working and you don’t feel comfortable sharing the complete code here, please send in a support ticket to and we will take a look at it there.