Form event on open

I’ve found this ‘show’ event that we can hook on the page like this:
image

But frm.doc points to previous doc, not the one about to be shown…

This framework is driving me crazy !