I have a requirement to hide custom button when condition is satisfied.On case I have person_role field.If the field is null then I need to hide custom button on vf page.
<apex:commandButton value="Confirm" action="{!Confirm}" />
if(case.Person_Role__c==NULL){
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO,'order cannot be created'));
Any help
rendered
attribute. – Mahmood Apr 19 '17 at 18:23rendered
attribute. The link posted in the other comments should give you a good start. – Mahmood Apr 19 '17 at 18:27