Hide relation manager based on state of form field

Does anyone know how to show/hide a relation manager based on the state of a form field? I could only find info on doing it based on the model (canViewForRecord).

Cheers
Was this page helpful?