I want to use a dropdown list for attributing values to a field. However, for the end user, I want to show easy labes instead of numbers.
I wonder how I can set up a formula to transform that text to integers.
The labels would be:
hard. They should be mapped to
I need to transform those to compute them in another formula.
Here is what it would look like in a basic Python function:
def mapping(x): y = 1 if x == 'easy': y = 0.5 elif x == 'medium': y = 1 else: y = 1.5
How can I solve this using formulas in Salesforce?