Tagsalesforce

How to create dynamic drop downs in Salesforce?

H

I had task of creating two drop downs for a custom object in Salesforce: 1. Country – Listing all countries of the world. 2. State – Listing all States for selected Country dynamically. This wasnt a visualforce page, had to do it through custom fields itself. So I came across Dependent Fields concept in Salesforce. Its pretty easy to use and I just loved the way Salesforce has made it...

Using URLFOR function in Apex Salesforce

U

While developing your Visualforce pages you may need to be able to obtain the URL of certain actions or your static resources. I found it personally a challenge since the documentation for “URLFOR” function is not included in “Visualforce Developer Guide” itself and instead included in the general help area of Salesforce. Generally you can use the “URLFOR”...

SOLVED: “This record type cannot be deactivated because the following profiles use this record type as default.”

S

I just thought I’ll play with a Record Type for Opportunity and delete it later but got an headache finding how to solve this error. Finally, here is the way: Goto Setup -> Administration Setup -> Manage Users -> Profile Go inside your corresponding profile and search for that particula Record Type name, in my case it was “Partner Opportunity Record Type”. Edit this and...

Creating Dependent SelectLists in VisualForce

C

We can create the SelectLists in VisualForce whose values will depend on the value selected in another selectlist.The method i have used here is using the Lists collection by programatically filling the values of the dependant selectlist based on the selected value. VisualForce code: <apex:outputLabel value=”Select State”‘> <apex:selectList value=”{...

Category