Cannot Reference Converted lead error
This error means that the Lead record has been converted. Once converted, the Lead record cannot be updated. The Lead object has an IsConverted property. Using that you can check ....
This error means that the Lead record has been converted. Once converted, the Lead record cannot be updated. The Lead object has an IsConverted property. Using that you can check ....
Schema.DescribeFieldResult and Schema.PicklistEntry can be used to fetch picklist values of Salesforce Standard object picklist field. Sample Apex Code: Schema.DescribeFieldResult fieldResult = Account.Type.getDescribe(); List < Schema.PicklistEntry > picklistEntries = fieldResult.getPicklistValues(); ....
The below code is used to display Rating picklist of standard object Account. <apex:page standardController="Account"> <apex:form > <apex:pageMessages /> <apex:pageBlock > <apex:pageBlockSection columns="2"> <apex:pageblockSectionItem > <apex:outputLabel value="Rating"/> </apex:pageblockSectionItem> ....
Sample Code: List<String> mail = new List<String>(); String error = ''; Integer i; Integer len; mail.add([email protected]); mail.add([email protected]); mail.add([email protected]); mail.add([email protected]); len = mail.size(); i = 0; for(String temp:mail) { if(i>len-1) ....
<iframe> not working in Home page component, enable 'Show HTML' checkbox before typing the HTML code. Example: <iframe src="/apex/Sample"></iframe>
Sample Code: Visualforce page: <apex:page controller="sample"><script type="text/javascript"></script> <apex:form > <apex:pageMessages /> <apex:pageBlock > <apex:pageBlockSection columns="2"> <apex:pageblockSectionItem > <apex:outputLabel value="Metro"/> </apex:pageblockSectionItem> <apex:pageblockSectionItem > <apex:inputCheckbox value="{!metro}"> ....
With salesforce.com, you can efficiently resolve and correspond with customer inquiries via email. Track and view all email threads regarding a customer service issue, and let your customers send inquiries ....
Sample Code: Visualforce Code: <apex:page controller="sample"> <apex:form > <apex:pageMessages/> <apex:pageBlock> <apex:pageBlockSection columns="2"> <apex:pageblockSectionItem> <apex:outputLabel value="Known City"/> </apex:pageblockSectionItem> <apex:pageblockSectionItem> <apex:inputCheckbox value="{!knwCity}"> <apex:actionSupport event="onchange" reRender="a"/> </apex:inputCheckbox> ....
In Salesforce Visualforce Page, we can dynamically make a field read-only using disabled attribute. Sample Code: Visualforce page: <apex:page controller="sample"> <apex:form > <apex:pageBlock> <apex:pageBlockSection columns="2"> <apex:pageblockSectionItem> <apex:outputLabel value="State"/> </apex:pageblockSectionItem> <apex:pageblockSectionItem> ....
Sample Code: Visualforce page: <apex:page controller="sample"> <apex:form > <apex:pageBlock> <apex:pageBlockSection columns="2"> <apex:pageblockSectionItem> <apex:outputLabel value="State"/> </apex:pageblockSectionItem> <apex:pageblockSectionItem> <apex:selectList size="1" value="{!state}"> <apex:selectOptions value="{!states}"/> <apex:actionSupport event="onchange" reRender="a"/> </apex:selectList> ....