You need to sign in to do that
Don't have an account?
iswarya sekar 7
when clicking closecase custom button it should display as this case is already closed in vf page. anyone help me.thanks in advance!!
<apex:page standardController="Case" showHeader="false" > <apex:form> <apex:pagemessages/> <apex:pageblock title="Case Details"> <apex:pageblocksection columns="1"> <apex:inputField value="{!Case.CaseNumber}"/> <apex:outputfield value="{!Case.Status}"/> <apex:outputfield value="{!Case.Reason}"/> </apex:pageblocksection> <apex:pageblockbuttons > <apex:commandButton value="ClosetheCase" action="{!Save}"/> </apex:pageblockbuttons> </apex:pageblock> </apex:form> </apex:page>
You can create a custom controller or contro ller extension and write a method for cheking the status of the case then you can call that method through action attribute of command button.
Regards
Hitesh Khatri
Salesforce Developer