Currently, I have a requirement, which is:
Background: In Contact form, there is a related table (Connection) subgid with a default view named All Connections. All Connection view has a column, named Total Amount.
Requirement: if
1. Contact custom field, named Contact Type, value = Employee
AND
2. Current User has NOT been assigned security role - Company Management Role,
HIDE the Total Amount column or make it be blank
I'd like to write a plugin to achieve the logic above. Could you please provide an plugin code example or some resource I can reference?
Thank you so much in advance.