I created a VF page With some inputfield components these fields don't have any validation rules but when i am trying to save the records after entering the details in it. I am getting an error MSG as
Insert failed. The first exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, You must review the preferences section before you can save this record.
There are some validation rules on other fields in the same object. According to my requirement I don't want validation fields on my VF page now.
<apex:page controller="controllerclass">
<style>
.headerRow th{
display:none;
}
</style>
<apex:stylesheet value="/sCSS/21.0/sprites/1297816277000/Theme3/default/gc/versioning.css" />
<apex:tabPanel switchType="client" selectedTab="opportunities2" id="theTabPanel" >
<apex:tab label="tab1" id="Tabone" style="font-weight:bold;width:200px;">
<apex:pageblock title="New Lead">
<apex:pageblocksection >
<apex:form >
<apex:commandLink action="{!records}" immediate="true">
<apex:image value="{!$Resource.Logo_Medium}" height="100" width="100" />
</apex:commandlink>
<br/>
<apex:commandLink action="{!action}" immediate="true">
<apex:image value="{!$Resource.Logo_Transparent}" height="50" width="200" />
</apex:commandlink>
</apex:form>
</apex:pageblocksection>
</apex:pageblock>
</apex:tab>
<apex:tab label="tab2" id="TabTWO" style="font-weight:bold;width:200px;" name="opportunities2">
<apex:form >
<apex:pageblock title="Opportunities" mode="edit" >
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!dosave}" style="Margin-left:250px" immediate="true"/>
</apex:pageBlockButtons>
<apex:pageblocksection >
<apex:pageBlockTable value="{!Opportunities}" var="Opportunity" >
<apex:column headerValue="RecordTypeId" value="{!Opportunity.RecordTypeId}" />
<apex:column headerValue="Name" value="{!Opportunity.name}" />
<apex:column headerValue="StageName" value="{!Opportunity.StageName}"/>
<apex:column headerValue="CloseDate" value="{!Opportunity.CloseDate}"/>
<apex:column headerValue="Sales Representative" value="{!Opportunity.Sales_Rep__c}"/>
<apex:column headerValue="Date Of Appointment" value="{!Opportunity.Date_of_Appointment__c}"/>
</apex:pageBlockTable>
</apex:pageblocksection>
<apex:pageBlockSection title="Information" columns="2" >
<apex:inputField label="Start" value="{!event.StartDateTime}" />
<apex:selectList label="Sales Consultant" size="1" value="{!Consultantname}" >
<apex:selectOptions value="{!ActiveSalesConsultant}" ></apex:selectOptions>
</apex:selectList>
<apex:inputField label="deal with" value="{!lead.LastName}" />
<apex:inputField label="Duration" value="{!event.DurationInMinutes}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Opportunity Information" columns="2">
<apex:inputField value="{!ObjOpportunity.name}"/>
<apex:inputField value="{!ObjOpportunity.StageName}"/>
<apex:inputField value="{!ObjOpportunity.AccountId}"/>
<apex:inputField value="{!ObjOpportunity.CloseDate}"/>
</apex:pageBlockSection>
</apex:pageblock>
</apex:form>
</apex:tabPanel>
</apex:page>
