I have a record type for opportunity to which i need to assign this VF page. I am getting an error :
Element type "apex:pageBlock" must be followed by either attribute specifications, ">" or "/>".
VF page
<apex:page standardController="Opportunity" extensions="CreateOppExtension" >
<apex:form >
<apex:pageBlock title="Opportunity Edit" mode="save" rendered="{if(opportunity.RecordTypeid =="012b0000000M8s5"),true,false}">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save" />
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Controller:
public class CreateOppExtension {
Opportunity opp {get;set;}
String Owner {get;set;}
ApexPages.StandardController GstdController;
public PageReference save(){
insert opp;
return new PageReference('/'+opp.Id);
}
rendered="{!opportunity.RecordTypeid =='012b0000000M8s5'}"
– sfdcfox Jun 29 '17 at 12:39