onButtonClick

The onButtonClick method collects data when a user clicks an application button.