You need to sign in to do that
Don't have an account?

How to get picklist value in formula, if there are mass picklist option
Just want to get the selected value of a picklist in formula,
and I know the CASE() or ISPICKVAL() should be used.
But it is terrible if there are mass of option in picklist.
I hate to do it like this.
Anyone can help me?
Thanks,
Atlantis
To get The Selected Value from Picklist you can try TEXT(Picklist Field Name). It will return the Selected Picklist Value.
Thanks
Manoj
All Answers
Also, if do it with CASE().
formula allows maximum 3,900 characters, but my formula has more the 14,000 characters,
Any idea?
Thanks
To get The Selected Value from Picklist you can try TEXT(Picklist Field Name). It will return the Selected Picklist Value.
Thanks
Manoj
thanks,Manoj_79
It works. I really appreciated it.
Best regards,
Atlantis
How do you substitute the text from a picklist? If a single quote in a picklist value is breaking your javascript, it needs to be replaced, but this doesn't even let you save the javascript for a button.
var someVar = '{!SUBSTITUTE(TEXT(MyRecord.MyPicklist), "'", "\'")}';
// Error: Incorrect parameter for TEXT. Expected Number, Date, DateTime, received Picklist
It might be that there have been updates since this solution. But in order to use a picklist value in a formula I had to convert to TEXT then NUMBER. ex.
Opp_Ad_Mag_Percent__c Values (25,50,75,100)
So to get the amount of money to be credited to Ad/Mag I had a custom formula field:
Amount * VALUE(TEXT(Opp_Ad_Mag_Percent__c))/100