Search Community
- Force.com Discussion Boards
- :
- Salesforce User Discussions
- :
- Best Practices Discussion
- :
- Re: How to compare two picklist field values?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to compare two picklist field values?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-28-2009 02:10 PM
I want to write a formula that evaluates the current value of a picklist field with the previous value.
I feel like it should be written:
MyField__c = PRIORVALUE(MyField__c)
where MyField is my picklist field...but I somehow have to use the ISPICKVALUE() function and cannot see how to implement this.
Anyone run into this before?
Re: How to compare two picklist field values?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-28-2009 06:35 PM
Hi Dave,
I've done some PRIORVALUE formulas on Picklist fields, you might want to try hacking this one. It basically locks the Picklist field once a user selects "A" form the list, otherwise it lets them edit it.
AND( ISCHANGED(Picklist_1__c ), ISPICKVAL(PRIORVALUE(Picklist_1__c ), "A"), NOT(ISPICKVAL( Picklist_1__c , "A")) )
Re: How to compare two picklist field values?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-11-2009 04:51 AM
Hello Stevemo,
just wanted to let you know that ISCHANGED(Picklist) was something that I learned to use today. I was googling a possible solution for my formula, and found out this topic.
Living and learning.
Re: How to compare two picklist field values?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-29-2010 01:34 PM
Adv Admin 301 and Dev 401 Certified

