Questions tagged [visualforce-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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,765
1 vote
2 answers
680 views

How to have a field display without a decimal

I have three fields in the subject line, the last 3, that are displaying the numbers with a decimal. The fields are rollup summaries. How can I get it so it doesn't show the decimal? <messaging:...
Michelle's user avatar
0 votes
1 answer
351 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
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
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 ...
Nick's user avatar
  • 6,934
1 vote
1 answer
2k views

Displaying user's profile picture dynamically in email template

I have a requirement to display user's profile picture dynamically in the email template. Email template: <messaging:emailTemplate subject="Test" recipientType="Contact" relatedToType="Account"&...
user42273'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
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'...
iDog's user avatar
  • 484
2 votes
1 answer
562 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 /> </...
Konnor McDowell's user avatar
0 votes
1 answer
1k views

VisualForce Email Template - declared 'htmlEmailBody' render as text

I have a VisualForce Email Template, which includes the 'messaging:htmlEmailBody' decleration. When testing in the preview editor, the template renders the HTML as needed: When the Email is sent to ...
iDog's user avatar
  • 484
1 vote
1 answer
929 views

VisualForce Email Template - include Case Email Messages through controller

I am trying to create a VisualForce Email Template, related to the Case Object. In the template, I wish to include the email correspondence we had with the customer as a thread. Below are the Apex ...
iDog's user avatar
  • 484
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
2 answers
3k views

IF THEN Statement in VisualForce Email Template

I am trying to create an If statement that will output the date of TimeclockStartDate__c if it has a value and to not output anything if the field is left bank. I am getting an error: "Syntax Error" ...
Kayhon Sazegari's user avatar
0 votes
0 answers
168 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
1 vote
1 answer
48 views

Add > in Visualforce Template Email Subject

I need to add > to the subject of Visualforce email template. Like: Wayne Enterprise > Bruce Wayne Directly adding > in the subject doesn't work. I have tried adding HTML code as shown below but ...
RajeshShah's user avatar
  • 1,754
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
1 answer
781 views

Merging Case fields into Visualforce email template?

I'm using the Messaging.SingleEmailMessage class to send an email (using a VF template), merging in some Case fields. Where do you specify what record should be used for the merge fields in the ...
Brian Mansfield's user avatar
0 votes
1 answer
1k views

Can't we use more than one custom object in vf template?

Can't we use more than one custom object in visualforce email template?..
Reddy's user avatar
  • 125
0 votes
2 answers
135 views

What are we achieving with Visualforce templates in Salesforce

I was reading few articles about Apex Template and after reading everything I really doubt that Apex template is useful. Because as per template concept, if there is repetitive statements or code in ...
salesforcewithfunforce's user avatar
1 vote
0 answers
50 views

Visualforce email template with User chosen criteria [closed]

Is there any workaround to pass some User chosen data into VF Email templates for the controller to process? I want the User to be able to choose a date range to send information about a collection ...
dphil's user avatar
  • 6,145
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
1 answer
408 views

User input into Visualforce Template

I want to send a VF Email template but I also want to have User inputted data. Is this possible without creating an extra object to store this additional information on? My Template will contain a ...
dphil's user avatar
  • 6,145
0 votes
1 answer
81 views

Not able to add a blank space in the email attachment

I am trying to attach an ics file and I'm just not able to add a blank space between certain characters. I tried using &nbsp; and <br/> to even break the line but instead it's printing as it ...
User2529's user avatar
  • 703
0 votes
1 answer
83 views

VisualForce Email Templates

I'm facing with VisualForce Email Templates and I need to get the email body with rendered field in order to use it somewhere else. This is an use case I've got an email whit this body "Hello {!...
Fabio Maturo's user avatar
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
0 votes
1 answer
4k views

Can I preview visualforce email template into visualforce page?

I want to display the visualforce email template inside a panel with live preview if possible, so while I'm writing lead_name__c for example It will be bind to template where Dear recipient....
user3003810's user avatar
3 votes
1 answer
974 views

How to avoid hardcoding of ouput link value in VF email template?

I am designing a Visualforce email template for an approval process and trying to provide a link to Salesforce for the approver. I want to avoid hardcoding of the URL to avoid a post deployment step :)...
Jarvis's user avatar
  • 2,100
1 vote
2 answers
933 views

VisualForce apex:repeat Related Objects not rendering in VF Email

Thanks to Boris Bachovski , I was able to successfully get my VisualForce email to compile. However, when I fired off a test Email Alert, (this action was linked with the VF Template) the ...
GPP's user avatar
  • 553
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
2 answers
70 views

Generating custom PDFs for service orders

This is a somewhat broad question so I'm looking for expert guidance more so than concrete steps to take. I'm looking to create a service order PDF in Salesforce. The main content looks a lot like ...
The Gilbert Arenas Dagger's user avatar
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="...
DaphneC's user avatar
  • 13
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
267 views

Visualforce Composition ignores template styling

The following VF page entitled TemplatePage looks fine when opened: <apex:page> <head> <style> .mainDiv { ... } </style> </head> <...
Mossi's user avatar
  • 3,906
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
1 vote
1 answer
261 views

Visualforce Email Template Related Info

I have a template for a Custom Object Business_Trip__c with Child relationship to Event via Custom Lookup. I want to show related meetings. Template below: <p><b>Planned Meetings:</b&...
jaw999's user avatar
  • 1,307
1 vote
1 answer
99 views

Visualforce Template with Custom Event Relationship

I have a custom lookup field on Activities to Business_Trip__c, allowing linking multiple meetings to one trip and to the visited Accounts. I want to create an VF approval template for the proposed ...
jaw999's user avatar
  • 1,307
0 votes
2 answers
91 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
384 views

Case Team Members in Visualforce Email Template

I created a Visualforce email template on case, and I want to include the list of Case Team Members in the email. How would I do that? This is what I have so far...I put the ContactID on there just ...
Amy Maxwell's user avatar
3 votes
3 answers
2k views

Existing file as attachment in visualforce component

This time I would like to ask if anyone was able to add existing document/attachment(PDF) to visualforce template as file attachment? Of course I mean add as part of logic in template(component). This ...
Artur Kępczyński's user avatar
1 vote
1 answer
361 views

VisualForce Email Template outputLink randomly injects javascript

I have an email template that uses apex:outputLink for incorporating links. The reason I cannot just use html tags is because they are conditional by using render. I normally see the correct URL: ...
Scott's user avatar
  • 13
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
2 votes
0 answers
381 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
1 answer
711 views

Relating ProcessInstance in visualforce emails

Demo for a visualforce email via Salesforce shows how you can relate fields - look at how Contact's email is included: <apex:repeat var="cx" value="{!relatedTo.Cases}"> <tr> ...
jaw999's user avatar
  • 1,307
0 votes
1 answer
27 views

Custom template content areas go missing when you exit the editor and go back in

I have built a custom template that others can use without know how to code, however the template looks normal until content is dragged in and you exit the editor. When you go back into the editor the ...
Matthege's user avatar
3 votes
1 answer
972 views

problem putting an rtf field into visualforce html email template

I want to create an email from a template and insert the contents of an rtf field from a record into the email. To this end, I created a visualforce email template (see attached code) My problem is ...
Bartley's user avatar
  • 5,237
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
1 vote
1 answer
612 views

Visualforce template with page breaks

I have a opportunitylineItem list, so I create a visualforce email template to send like attachment the table with the opportuntiy products. I need a dynamically page break if I have more than 6 rows ...
lisyy's user avatar
  • 169
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 ...
user7101's user avatar
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 ...
proteuscanvas's user avatar
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 ...
Learner's user avatar
  • 450