You need to sign in to do that
Don't have an account?
Sabina
Translated picklist value in Visualforce email template, the plain text part
Hello,
I have a picklist and its values have been translated to different languages. I set up a Visualforce email template with custom labels and field values to sent to contacts based on their language, using
However, if I try to use apex:outputField in the <messaging:plainTextEmailBody> part of the email, it won't save because of this error:
Save error: <messaging:plainTextEmailBody> cannot contain <apex:outputField>.
Using apex:outputText doesn't translate the value.
Does anyone know how to get the translated value of a picklist in the plain text part of the email?
Thanks
I have a picklist and its values have been translated to different languages. I set up a Visualforce email template with custom labels and field values to sent to contacts based on their language, using
<messaging:emailTemplate subject="{!$Label.Email_Title}" recipientType="Contact" language="{!recipient.Language__c}">All the custom labels are translated fine. The picklist value in the <messaging:htmlEmailBody> part of the email also displays in the correct language, using this:
<apex:outputField value="{!recipient.Industry__c}"/>
However, if I try to use apex:outputField in the <messaging:plainTextEmailBody> part of the email, it won't save because of this error:
Save error: <messaging:plainTextEmailBody> cannot contain <apex:outputField>.
Using apex:outputText doesn't translate the value.
Does anyone know how to get the translated value of a picklist in the plain text part of the email?
Thanks
To display the field:
The contactIndustry component:
The controller: