I want to call a visualforce page from a custom button. This button will be on a related list. Currently the button displays but will not launch. Here's the current code that I have.
windows.open('/apex/MedaBDPassessment',blank)?
But I believe I need to add some of this code below. This visualforce page needs to relate to a record type and case record.
/a03/e?RecordType=012i0000000eigY&
cancelURL={!URLFOR($Action.Case_Record__c.View, Case_Record__c.Id)}&
CF00Ni0000003WnaZ={!Case_Record__c.Name}&
CF00Ni0000003WnaZ_lkid={!Case_Record__c.Id}
Best Answer
Make the Custom button list type and select visualforce page in the Content Source.