+ Start a Discussion
Jacob W LandisJacob W Landis 

how to make custom button redirect to a page using different page layout

We have a custom object My_Cases which has a status__c field and the other fields. We want to have a close case button in the detail page of My_case__c, when click it, we want to go to the edit page of My_Case__c with Closed selected in status__c, and only a few fields shown up which some of them are read only. Actually we have created a closed case page layout for it. But I don't know how to call it from my button. Do I have to make my own VF for this function?
Suneel#8Suneel#8
Yes you need to create your own VF page and call it from the button.

Page layout is tied with record type and you cannot call page layout from a button