Hide RelationManager card based on certain condition

Is there any way that I can hide RelationManager on Resource Edit based on a certain condition?

Let say I have an Event which Participation Registration set to "Contact", as it's not "Ticket", I want to hide the "Tickets" RelationManager or at least show certain messages instead of "No records found" to be "The event is not using 'ticket' for participant registration".

Thank you.
Screenshot_621.jpg
Was this page helpful?