Hi,
I have done something like this through the visibility of the button. From Properties -> Behavior -> Visible. You have to select Advanced and from Calculation Rule define the behavior that you need.
For example:
if( "your condition")
return = true
else
return = false
end
I hope this is what you need
Regards.