I have a Visualforce form which that contain a couple of fields restricited to only certain profiles. With Salesforce the fields are automatically hidden/shown depending on the permissions, what I would like to do is extend functionality to the surounding code I have written.
Here is an example of the code I want to show only if 'Profile B' user logged in.
<div class="form-group col-md-6 col-xs-12">
<label>Outlet ID</label>
<apex:inputField value="{!Service_Order__c.Outlet_ID__c}" styleClass="form-control" />
</div>
Currently it will still output div element and the label.