+ Start a Discussion

How to add Close Case botton....


     Can any one please tell me how to add a close case button or its functionality in my custom object "SDMK"? So that the customers can close cases. (Like Close Case button in Cases tab)


Thanks in adv,:smileyhappy:





Like this?




Thanks for ur quick reply...

The link is for replacing a Standard close button with custom button. 


But what i want is to add a button to the custom object SDMK. So that when the button is clicked... that particular record should be closed. Just like the close case button function in cases tab


Any suggestions are welcome...


Thanks in adv,


Yeah, and what you need to do is create a custom button on your custom object that closes it in much the same way that the sample button I sent you does for Case.

Hi Werewolf,

Getting an error while creating custom button to my Custom Object: Field Service_Management.Id does not exist


My Custom Object details:-

        Object Name: Service_Management

        API Name: Service_Management__c


The Java Script code:


{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js" )}

    var smObj = new Service_Management__c();
    smObj.Id = '{!Service_Management__c.Id}';
    smObj.Status = 'Closed';
    var result = sforce.connection.update([smObj]);

    if (result[0].success=='false') {
    } else {


Please guide me to rectify this error!!!



Other people are getting the same errors when following the instructions. Does anyone have a suggestion on how to fix this?