Maybe you could show or hide that button with an expression and check the “get data from page url” to extract a string that you could check to hide/show the button.

best,
jupxi