Turn on/off button in Master app

I have a master/detail set up
My Master has a Button the says “Post” which posts the entire transaction

I only want this button displayed once I have edited the detail data. So I need a command to display or hide the Master App buttons while the detail app.

Is there such a thing?