You need to sign in to do that
Don't have an account?
MCL
How to create a formula - language and gender
Hi there,
Can someone advise me on how to create a forluma with languages and genders please. I have created picklists of languages, German and English, and genders, Female and Male. I would like to create a new formula field for the letter salutations. For instance, If a contact is a female and speaks German, her salutation will be Frau. I am new to Salesforce. Any advice will be much appreciated!!
Thank you,
Can someone advise me on how to create a forluma with languages and genders please. I have created picklists of languages, German and English, and genders, Female and Male. I would like to create a new formula field for the letter salutations. For instance, If a contact is a female and speaks German, her salutation will be Frau. I am new to Salesforce. Any advice will be much appreciated!!
Thank you,
Again, I appologize for my bad formula building skills. I've gotten a little rusty. If you're wondering what ISPICKVAL() does, it takes a field of picklist type in the first argument and text in the second. It creates a text representation of the Picklist field's value and compares it with the text you entered in the second argument. If they match, the function returns true, if not, it returns false. I should have incluced the other part of the documentation that I referenced: https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_functions_i_z.htm&language=en_US if you scroll down a little, you'll find information about ISPICKVAL.
All Answers
Seeing as how you want a custom formula field, here's what I'd probably do: If you're not familiar with any of the functions that I used, check this help document; it gives a much better explaination than I could give and includes all functions available: https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_functions_a_h.htm&language=en_US
Let me know if this helps.
Thanks,
Parker
IF(
ISPICKVAL(Gender__c,"Male"),CASE(Language__c, "German", "Herr","English", "Mr." , )
IF(ISPICKVAL(Gender__c, "Female"), CASE(Language__c, "German", "Frau","English", "Mrs.")
), ) ,)
Thank you!
Again, I appologize for my bad formula building skills. I've gotten a little rusty. If you're wondering what ISPICKVAL() does, it takes a field of picklist type in the first argument and text in the second. It creates a text representation of the Picklist field's value and compares it with the text you entered in the second argument. If they match, the function returns true, if not, it returns false. I should have incluced the other part of the documentation that I referenced: https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_functions_i_z.htm&language=en_US if you scroll down a little, you'll find information about ISPICKVAL.
Again, I'm more than happy to help!
Regards,
Parker