Questions tagged [visualforce-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

How To Create Custom Page Template With Collapsible Panels

In the Lightning App UI, I'm working in a Case Record Page (Page Type = Record Page, Object = Case), that looks like this: I want the left and right panels (the case info and knowledge search) to be ...
1 vote
2 answers
72 views

How to see the fields which are used in a Visualforce email template

Have a visualforce email template for details on Opportunity closed won - I want to check which fields are being pulled through into the template from the Opportunity record. Where do I go to find ...
0 votes
1 answer
799 views

How to display the currency field in visualforce email template

Mutilple Currencies is enabled in Org. Default -USD Ex : i am having currency value__c(datatype - currency) field .if the GBP is selected the amount will be displayed as GBP 1000 (USD 1316) When i ...
0 votes
3 answers
2k views

VF Email Template Error - Attempt to de-reference a null object

Hello everyone I am trying to get my visualforce email template to work this component is used on the Opportunity and Contact Objects. Both email templates are showing the Error occurred trying to ...
0 votes
2 answers
122 views

Visualforce Email Templates -- How do I display images in my use case?

I am making Visualforce email templates for a client. Some of the emails contain a section with recommended products at the bottom, which is just an image and item name displayed in a table in a row. ...
1 vote
0 answers
994 views

Using custom fonts in visualforce email templates

I am creating visualforce email template and need to use custom fonts (mostly Neutraface Display, SalesforceSans, TrailheadBold2). Most of the search results i get are about using them in visualforce ...
0 votes
0 answers
27 views

Select different visualforce pages from a multi-select picklist

I'm working on a custom button to print PDF invoice with different templates. When a user click on Print Invoice button on record page, a screen with multi-select picklist will pop up and let user ...
0 votes
0 answers
48 views

Visualforce style templates or builder?

I'd like to stylize a visualforce email but am not versed enough in html - is there a drag and drop application or site that can help? Basic Needs Header Footer Table Bold Font size Background color
0 votes
1 answer
48 views

Visualforce Page Export Template - Dislay Multi-Values Of Multi-Select Picklist

I'm using Visualforce page to make it an Export template so that when user press a button, it will export data from List View. Everything is fine but I have a problem with multi-select picklist. ...
0 votes
0 answers
104 views

how to remove extra characters while creating url in visualforce email template

<a href="https://{!$Setup.Utility__c.Support_Site_Url__c}/CaseTracking?id={!relatedTo.id}&tw={!relatedTo.CaseTr_TrackingKey__c}">Case Tracker Link</a> I'm creating URL to ...
7 votes
2 answers
8k views

Salesforce Visualforce Email Template {!Recipient.Name} does not have the correct value

I have an object called 'Request'. This object has three lookup fields 'Reviewer 1', 'Reviewer 2', 'Reviewer 3' (User object); besides other non-relevant fields. I have created a Workflow rule, which ...
0 votes
1 answer
98 views

Unable to do DML in controller when using Visualforce Email Templates

I have an <apex:component> that is tied to a VF email template. I am assigning the AccountId as the attribute. The issue now is that when I try to do a field update in the Account record (DML) ...
0 votes
1 answer
549 views

Is possible to use a Visualforce email template whose content can be freely edit?

I need to use a Visualforce template because I have to automatically attach a Visualforce page rendered as PDF. However, I'm not able to make a Visualforce template whose content can be freely edit ...
2 votes
1 answer
410 views

Dark Mode and Visualforce templates

I have been looking for a solution to be able to show the email body with white text and black background when the dark mode is enabled. But so far I haven't seen any solution that is actually working ...
0 votes
1 answer
221 views

VisualForce Email Template for Experience Cloud Emails

I'm trying to use a VisualForce email template for my Communities emails (Experience Cloud) I'm getting errors as I haven't specified a "relatedToType" in the following: <messaging:...
0 votes
1 answer
660 views

Use a custom controller in Visualforce template

I am trying to run an email template from the Contract object, but in the email (or an attached PDF) print a list of related cases and specified fields for the cases. I've managed to do this ...
0 votes
1 answer
603 views

how to have buttons and social media images in salesforce email template

Hi, I have a requirement to create email template which includes company logo as header, email content , button, social media icons and other links and it has to be used in customer community. Looks ...
0 votes
1 answer
69 views

How to use conditionals in an apex: repeat and place a custom link in a visualforce email template?

I am creating a visualforce email template that sends contact data to salespeople. In this email there are two points that I am not able to advance: In the section "Informações sobre o ...
0 votes
1 answer
100 views

Unable to display relatedlist in visual force email template

Hi in the below visualforce code i am unable to display orderItem related list .the custom related list object orderItem is a managed package, to show the related list i have taken the masterdetail ...
0 votes
1 answer
309 views

Get last created related object data in Visualforce Email Template

I have a Visualforce Email Template which is as follows <messaging:emailTemplate recipientType="Contact" relatedToType="Case" subject="Test"> ... <apex:...
0 votes
1 answer
361 views

Visualforce Email Templa messaging:emailTemplate

I have requirements that I have created a VF Email template and I need to add the today date and next year date dynamically, Today is working fine as mentioned in code but when I try to add year+1 It ...
0 votes
1 answer
553 views

Are Visualforce templates possible in Visualforce email templates?

So, let's say you want really beautiful emails sent from Salesforce. You build all the HTML to make them look amazing and add a bit of Visualforce to make them more dynamic. But then you add a couple ...
0 votes
1 answer
2k views

Using Custom Controllers within Visualforce Email Templates

I am trying to create a VisualForce Email Template, in this emailTemplate i need to get value from Custom Objects.(This Object is not related to Any other Objects - This is the Object Which i am ...
0 votes
0 answers
441 views

rich text not formatted on vf pdf properly

I have created a vf page pdf and use a custom RTF field but on PDF it is not rendering properly i tried outputText and OutputField tag but not able to fix the issue. on Detail page Image is below On ...
0 votes
1 answer
543 views

Error: Aggregate Relationship is used in an unsupported complex expression containing 'SBQQ__Opportunity__r.opportunitylineitems [duplicate]

I have hit a roadblock on an VF email template I am working on, and would appreciate any help you all may be able to offer. I have the following code where I need to set up an email to an outside ...
0 votes
1 answer
498 views

Visual-force Email Template working for Test but in Actual Alert it is not displaying all values

I have a Visualforce email template. When i check it with "Send Test and verify Merge fields" then it is working perfectly. However, when it passes through an email alert then only few ...
0 votes
0 answers
656 views

Email Template - Visualforce with Bootstrap Static Resource

Background: I have an Email Template that was developed in Visualforce Page with a static resource (Bootstrap). When I preview the email, it looks as expected: When I Test Merge & Send, the ...
0 votes
0 answers
61 views

insert merged fields and script to have Accept and Reject in custom HTML email template

I would like to ask for your assistance on how can I insert merged fields in html custom email template. I need to create html template for this message: Dear ${contact}, The engineer working your ...
0 votes
1 answer
35 views

How to use single instance of apex controller in VF Template and VF composition

I have a requirement to implement visualforce Template approach. As part of that I have page1, page2, page3(VF pages). page1 is the starter and composition page which defines content(empty for now) ...
5 votes
1 answer
4k views

Add Attachment from Notes and Attachment related list in a VF Email template

I have a requirement and I appreciate your help on this. We have a custom object, where users create records and upload spreadsheets in "Notes & Attachment" related list. Our requirement is, we ...
1 vote
1 answer
1k views

Custom Lightning Record Page Template not showing up in Template Switching Wizard

Built a custom lightning record based on the code here (the "Making a Record page with collapsing regions" one). It shows up under Custom when i go to build a new lightning record page but when i go ...
0 votes
1 answer
612 views

workflow rule and email alerts firing in user context

I performed this test in my sandbox- There is an object called Object1. When you change a field on it, it triggers a workflow. Workflow sends out email alert. Email alert is using Visualforce Email ...
2 votes
1 answer
6k views

How do I use a field to populate the mail.setToAddresses in a sendEmail class

I have set up a class that sends an email and I am using a VF Email Template that uses the Oppertunity fields. I have set up a custom field called Proposals_Senders_Email__c that is a text field. I ...
0 votes
2 answers
528 views

Email content not rendering when Pass custom relatedTo object's param from visual force email template to controller

I'm really confused by order of execution. I have tried with a few posts, but mine does not work. Please help with taking a look. I am able to receive the templated email, but there's no incident ...
2 votes
1 answer
5k views

Multi-lingual Visualforce email templates

I have a requirement where on workflow rules I want to send out an email in the users preferred language, Is there a way to create multi-lingual visualforce email templates? here is the sample ...
1 vote
0 answers
829 views

Visualforce Email template - merge fields not working

I need to populate the merge field for the related accounts creator/owner. I have these details:- <messaging:emailTemplate subject="Employers initiating Enrollment for Employees" recipientType="...
1 vote
1 answer
1k views

Add User Profile Picture to VisualForce Email Template

I have a running VisualForce Email Template for 'Case', and wish to include the Case.Owner profile picture. I am reading (here) that one can use either FullPhotoUrl or SmallPhotoUrl, but this doesn'...
3 votes
1 answer
5k views

Dynamic Subject in a Visualforce email template

This is my Visual force email template : Controller public class casetemplate{ public id accountid{get;set;} public list<case> getcases(){ List<case> caselist= [SELECT ...
1 vote
1 answer
298 views

How to get the attachments in apex which we have set in visualforce email template using <messaging:attachment>

below is the code snippet of the visualoforce email template. <messaging:emailTemplate> <messaging:attachment renderAs="PDF" filename="yourCases.pdf"> <html> <body&...
0 votes
1 answer
1k views

VF outputtext with value if contains condition and currency format

I want to format my Amount with currency and at the same time use the condition contains, bur I'm not sure how to put it Currency is working: <apex:outputText value="{0, number, currency}" ...
4 votes
0 answers
2k views

<script> tag generated by salesforce after </html> tag

I am building a website using templates and apex pages. In my apex page I have the option applybodytag and applyhtmltag set to false and I use the <head> and <body> tags in my template ...
0 votes
1 answer
2k views

Visualforce Email Template - broken images for all Email Clients? Workaround?

I have a case open with Salesforce, but I usually have better luck here. I have tested an email template on numerous mail clients - Outlook 2010, Outlook OWA, Gmail, and Yahoo. However all of them ...
0 votes
0 answers
132 views

Retrieve contact's profile in visualforce email template

<apex:repeat value="{!relatedTo.Apttus_Config2__AssetLineItems__r}" var="astitem"> <apex:outputPanel layout="none" rendered="{!IF(astItem.Apttus_Config2__EndDate__c != ...
1 vote
0 answers
80 views

Add A Visual Image Into a VF E-Mail template from the "Notes & Attachments" related list of a managed package object

This is the code I have written thus far: <messaging:emailTemplate subject="Your Offering Listing" recipientType="Contact" relatedToType="vlocity_ps__InventoryItem__c"> <messaging:...
0 votes
1 answer
759 views

Images in PDF attachment of a Visualforce email Template

When I try to a add an image in my PDF attachment of my email : <messaging:attachment filename="test.pdf" renderAs="PDF"> <apex:image value="https://drive.google.com/uc?id=1dRlAxFf-...
1 vote
1 answer
2k views

How do I send parameters through to a component on a Visualforce email template?

I'm trying to pass an object id to my component on my visualforce template but when it sends the mail it seems that it does not get the object id. My Template: <messaging:emailTemplate subject="...
2 votes
1 answer
560 views

Visualforce component applyBodyTag work-around

I have a visualforce page and visualforce component. The visualforce page simply calls the visualforce component: <apex:page renderAs="pdf" applyBodyTag="false"> <c:Component /> </...
2 votes
2 answers
5k views

Conditional rendering using IF in Visualforce Template

I have a VF template where I need to vary the closing part of the mail(after 'Best Regards') based on a particular Picklist field on the case object. Eg if Custom_field__c ='ML' then the closing part ...
0 votes
2 answers
244 views

vf email template can be editable once it managed?

In visual force email template,the user/admin will edit the content whenever necessary,so once it managed can we able to edit the vf email template??
0 votes
0 answers
1k views

Formatting parameterized custom label inside subject for Visualforce Email template

I'm trying to use the format() visualforce function to have a parameterized custom label as my Visualforce Email Template subject. This is my current code: <messaging:emailTemplate ...