In My FPM Configuration I have added a custom button for which I have assigned the event and its working successfully.
Now My requirement is to hide the button Depending on certain condition by doing coding.
For example : if Condition does not satisfy
Hide the custom button designed in FPM configuration on tool bar
Else.
Display it .
Endif.