I have a object Competitor_Mapping__c that has lookup with Account. In the page, i have used standard controller of Account to fetch the current Account id from URL, used in a SOQL to populate a list of associated Competitor_Mapping__c records, within an extension, which errors out Error: Invalid field Competitor_Product__c for SObject Account Competitor_Product__c is a field of Competitor_Mapping__c.
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 :