Questions tagged [visualforce-template]

The tag has no usage guidance.

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
Nelson's user avatar
  • 41
3 votes
0 answers
176 views

Visualforce Email Template Page Break

Is there any way to force email template to continue as a second page ? I tried "page-break-before:always" "page-break-after:always" but it does not work for me. What can i do to add page break to ...
Bugrahan 's user avatar
2 votes
0 answers
58 views

Can I use a SelectList in a VisualForce email template?

I have a VisualForce email template which is used to send a list of products to customers. The products are listed in a table in the email and I would like the end column to be a picklist with options ...
Irene's user avatar
  • 1,763
2 votes
0 answers
63 views

HTML Email Teamplate Issues SF

In the HTML email template I want to distinguish between internal and external user while sending any email. I tried using If loop and it worked for me but while I try to access certain merge fields ...
Abhik Dey's user avatar
  • 357
2 votes
0 answers
380 views

User Field Level Security behavior with a Workflow Email Alert using a custom Visualforce page

I'm currently having an issue with a custom Visualforce email template not displaying a field value when sent. This email is sent using from a Workflow rule assigned to an Email alert. Considering ...
jpmonette's user avatar
  • 4,400
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 ...
AwesomeAdmin8's user avatar
1 vote
0 answers
993 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 ...
user2957592's user avatar
1 vote
0 answers
827 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="...
mvk1991's user avatar
  • 535
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&...
Pratap Jadhavar's user avatar
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:...
Samuel's user avatar
  • 83
1 vote
0 answers
53 views

Chatter to Apex: Getting Attachment

I am using rest api (ConnectApi namespace output classes) to get the chatter feed details of a particular group in my org and using Javascript remoting to display the elements in a custom vf page. So ...
Brav's user avatar
  • 708
1 vote
0 answers
118 views

Visualforce case assignment template visibility issue

I've created a Visualforce email template to use as notification when a case is assigned to a user (By setting the template in Support Settings > Case Assigned Template). Let's say it looks something ...
jonathanwiesel's user avatar
1 vote
0 answers
81 views

Issue with displaying related object fields in email alert via trigger using Email Template

I am sending an email alert from my trigger using the below template. The problem is that {!relatedTo.Id} cant be seen in the email alert. How could this be achieved other than substituting the email ...
Pratik's user avatar
  • 45
1 vote
1 answer
156 views

How can I adjust the output of an article using PKB

I am building a site using the PKB package, and need to adjust the output markup of articles. Currently this markup is all built with tables, but after searching through every class, component, and ...
tekstrand's user avatar
  • 169
0 votes
2 answers
118 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. ...
DonDiesel's user avatar
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 ...
alice's user avatar
  • 1
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
HugMoreTrees's user avatar
0 votes
0 answers
103 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 ...
garvita asthana's user avatar
0 votes
1 answer
220 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:...
Riley SF's user avatar
0 votes
1 answer
602 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 ...
Sindhuja's user avatar
  • 133
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 ...
jbyrd's user avatar
  • 621
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 ...
SFDC 44's user avatar
  • 664
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 ...
Ankit verma's user avatar
0 votes
0 answers
652 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 ...
Max's user avatar
  • 476
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) ...
pioneer's user avatar
  • 23
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 ...
Mariones's user avatar
0 votes
0 answers
131 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 != ...
GOPAL Y's user avatar
  • 61
0 votes
1 answer
798 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 ...
Cheedella Tejaswini's user avatar
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 ...
Ismael Slimane's user avatar
0 votes
0 answers
36 views

Custom button functionality

I'm getting above error for sending email using apex class. I have a custom table and I have to design a method for button. In table their are so many records but whenever I'll select and record and ...
Rajan Mishra's user avatar
0 votes
1 answer
350 views

Help with Visualforce Email Template

When we create an opportunity we create a certain number of quotes (custom, child record). I would like to be able to send an email to include information from all the quotes created under the ...
Michelle's user avatar
0 votes
1 answer
153 views

Contact Address Format

I am using the below Visualforce Email Template: <messaging:emailTemplate subject="Address Allignment" recipientType="User" relatedToType="Contact"> <messaging:htmlEmailBody > <...
Ravi Kumar's user avatar
0 votes
1 answer
24 views

Can I add custom links to the visualforce email template

I have 2 custom links on my orders object and I am trying to put it on my Visualforce Email Template but when i try to save, it says Error: Invalid field Search_PO_Contact_Name for SObject ...
user avatar
0 votes
0 answers
167 views

Why is Quote2PDF visualforce page ignoring css/ html styling?

Goal: End User clicks a button on a child object's page layout that generates a PDF using merge fields from both the child and parent object records and attaches that PDF as an attachment on the child ...
GPP's user avatar
  • 553
0 votes
0 answers
45 views

Order of records retrieved

We have an visualforce email template which display all the Quote line items of the quote in a table format. We use apex:repeat with relatedTo.QuoteLineItems for this. What is the order in which the ...
RajeshShah's user avatar
  • 1,754
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 ...
Marc Rioux's user avatar
0 votes
2 answers
90 views

Using email templates

I want a email template which will have text like this Dear {contact.Name} Thanks for approaching us for product {SR.product.Name}. we have reviewed your request and would like to correspond with ...
Sachin Kadian's user avatar
0 votes
1 answer
114 views

Images sent thruogh visualforce email templates

The requirement is like: we want to sent some images in the emails generated. Email will be generated from visualforce email templates, so we need to add the images in visualforce email templates. ...
Priyanka Kajawe's user avatar