feed-icon-32x32.png

Learn how Salesforce.com can help your business
arrowpointe @ twitter
  • iphone vs. bold, iphone vs. bold,. i can't decide! iphone's keyboard scares me. Bold's OTA Google Calendar sync is very useful. :( 2 days ago
  • looking to talk to someone that's called Apex WebServices from PHP. have specific questions. 2 days ago
  • is anyone clear on pricing for authenticated users? is it free and all pricing is page view based? 2 days ago
  • got demo of Avankia's Credit Card Processing in Salesforce.com. Nice product. Better stuff on the way. http://tinyurl.com/5wsrq5 1 week ago
  • downloading my first album from Amazon MP3 store. I like it! I chose Car Alarm by The Sea and Cake (great band). 1 week ago
  • in things that are not marketing campaigns, what's your strategy of using Tags vs. Campaigns in Salesforce? 2 weeks ago
  • going to try youmail.com for my voicemail 2 weeks ago
  • More updates...

Powered by Twitter Tools.



Dynamically Required Picklists

Although Salesforce does not fully support dynamically required fields, you can use the dependent picklist feature from the Winter ‘06 release to implement this functionality when the field to be required is a picklist field and it’s requirement-rule is based upon another single picklist (or checkbox) field. To illustrate, the following requirement is common for many sales organizations and can use dependent picklists to fulfill it.

Require the end user to select a Reason Lost when the Opportunity Stage is set to ‘Closed Lost’

The steps to accomplish this are:

  1. Create a custom picklist field called ‘Reason Lost’ on the Opportunity Object.
  2. After creating the field, add a Field Dependency with the Stage as the controlling field.
  3. Add Stage as a Controlling Field

  4. Associate all of the Reason Lost values with the Closed Lost controlling value.
  5. Add Reason Lost as the Controlling Value

  6. Add the Reason Lost field to the Page Layout and require that field.
  7. You are already finished!

Here it is in action. While the Stage is set to values with no corresponding Reason Lost values, the Reason Lost field is read-only and is not required. Once the Stage is changed to Closed Lost, the Reason Lost field becomes read-write and is required.

Reason Lost is now required when stage is Closed Lost

5 Comments »

  1. Chris Said,

    March 23, 2006 @ 9:15 pm

    Why not go one step further, and have one consolidated “Reason Won/Lost field” that has different values dependent on if the Stage is Closed Won or Closed Lost? Still required, but more value for the real estate on the page…

  2. Successforce Blog Said,

    March 27, 2006 @ 3:54 pm

    Dynamically Required Picklists to Capture…

    There have been some really interesting best practice ideas emerging from customer and partner blogs. This week Scott Hemmeter wrote about how you could use dependent picklists to create dynamically required picklists. The example he used was a field

  3. Jamie Said,

    March 29, 2006 @ 11:52 am

    Any ideas on how I could create an “action” dependency? I’m trying to create a calendar event when a status field is set to “confirmed”

  4. Scott Hemmeter Said,

    March 29, 2006 @ 12:20 pm

    Re: Jamie’s question:

    Any ideas on how I could create an “action” dependency? I’m trying to create a calendar event when a status field is set to “confirmed”

    You need to do this using Salesforce’s Workflow module, not dependent picklists. The catch is that you cannot create a Calendar event. You can only create a Task. The Task will have a date associated to it, but will only be visible in the Task list on the homepage, not the Calendar.

    Go into your Help link in Salesforce and search on “Managing Workflow”. You will need to read more about Creating a Workflow Rule and Creating a Workflow Task.

  5. Matthew Bennett Said,

    September 8, 2006 @ 11:36 am

    Thanks, Scott, that has worked just fine for me. Nice explanation.

RSS feed for comments on this post · TrackBack URI

Leave a Comment

All comments are moderated. Other visitors will not see your comment until it has been approved.