I looked around a bit more into how I could execute custom actions while a form is active, and found this forum post in which it is suggested you override the request_next_slot
function to accomplish things like this.
Is that considered good practice, or is there a better way?