Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Formulas & Validation Rules Discussion
- :
- Re: Formula for picklist values
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Formula for picklist values
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-12-2012 10:37 AM - edited 11-12-2012 10:39 AM
I have a picklist field called Primary_Complaint_Code__c which includes about 200 values. If there is any value in this field, I would like to transfer that value to a new text field called All_Complaint_Codes__c. I'm hoping there is a way to specify all value rather than adding a line for each of the 200 values. I also have 2 other fields Secondary_Complaint_Code__c and Third_Complaint_Code__c with the same values and I need a field that holds all values for all Codes for reporting purposes.
| IF(ISPICKVAL( Primary_Complaint_Code__c ,"Smart Meters"),"Smart Meters;", null) |
My report would be:
All_Complaint_Codes__c contain "Smart Meters" rather than having Primary_Complaint_Code = Smart Meters or Secondary_Complaint_Code__c = Smart Meters or Third_Complaint_Code__c = Smart Meters.
Solved! Go to Solution.
Re: Formula for picklist values
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-12-2012 11:02 AM
Just to clarify, You are using a workflow rule with a field update that populates All_Complaint_Codes__c with the value selected in the Primary_Complaint_Code__c field correct?
Just use the formula: TEXT(Primary_Complaint_Code__c)
Got KUDOS?
Re: Formula for picklist values
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-12-2012 11:15 AM
That is what I needed!!! Thank you!
TEXT(Primary_Complaint_Code__c) + "; " +
TEXT( Secondary_Complaint_Code__c ) + "; " +
TEXT( Third_Complaint_Code__c )
Re: Formula for picklist values
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-13-2012 06:14 AM
Glad I could help!
Got KUDOS?

