I have a requirement to show different edit layout, based on recordtype, using standard edit button override. I'm trying to create a visualforce page and assign it to the edit button, refrering this question . here what i've tried so far :
<apex:page standardController="Abv_Core_KAM_Engagement_Plan__c" action="{!URLFOR(CASE(Abv_Core_KAM_Engagement_Plan__c.RecordType.Name, 'Abv_Core_KAM_Engagement_Plan', '$Action.Abv_Core_KAM_Engagement_Plan__c.Edit,Id' ,'Abv_Core_KAM_Strategic_Initiative','$Action.Abv_Core_KAM_Engagement_Plan__c.Edit,Id','$Action.Abv_Core_KAM_Engagement_Plan__c.Edit,Id'))}" >
<apex:variable value="{!Abv_Core_KAM_Engagement_Plan__c.RecordType.Name}" var="recTypeName"/>
which errors out
Error: Field $Action.Abv_Core_KAM_Engagement_Plan__c.Edit,Id does not exist. Check spelling.
please suggest any alternatives. thanks !
Plan__c.Edit,Id