Ok found my own answer by a bit of experimenting. While recording, rather than just clicking the checkbox, made the step a Mouse 'left click'. That checked the box and triggered the click event, whereas just a standard recording of checking the checkbox and setting the javascript onclick event did not trigger the underlying javascript.