You need to sign in to do that
Don't have an account?
Stefan
Concatenate Salutation in a custom formula
I am trying to build a custom field to be used in mail merge and am having problems with Salutation.
If Salutation field is populated I would like a space following the Salutation. If Salutation is empty then no space.
So why does this work:
IF(ISPICKVAL( Salutation , ""), "", "Mr,Mrs etc" & " " )
& FirstName & " "
&LastName
& FirstName & " "
&LastName
Mr,Mrs etc George BushTony Blair
But this:
IF(ISPICKVAL( Salutation , ""), "", Salutation & " " )
& FirstName & " "
&LastName
results in: Error: Field Salutation is a picklist field. Use it with an ISPICKVAL() or CASE() function instead.
DIrectly mixing Picklist values and Text fields is a problem. You may need to consider converting the Picklist value as part of the formula or maybe even a new text formula field (which you then could use in the field you want to build using concatenation) using something like this:
IF( ISPICKVAL( Salutation , "Mr") , "Mr ", "")
Since there obviously are several values of salutation using a CASE statement might be better (and I have had more luck using CASE for picklist values than ISPICKVAL).
CASE( Salutation ,
"Mr", "Mr ",
"Mrs", "Mrs ",
"etc.", "etc. ", "")