Questions tagged [template]

The tag has no usage guidance.

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

How is the <template> tag used in lwc different from one used in web components?

According to usage of <template> in web components: The elements under template won't appear in your page until you grab a reference to it with JavaScript and then append it to the DOM For ...
0
votes
1answer
20 views

Map values once pushed in are persisting between LWC template transitions

So I am facing this problem here,in short it goes like I have two templates which are conditionally displayed on click of Next and Previous so it is essentially lightning combo-box component with ...
0
votes
1answer
51 views

How to dynamically create lightning cards in lwc, with 2 cards in a single row using grid

I want to iterate over records and display those many number of lightning cards. Each row should have 2 cards using grid. I tried using for:each but it is only working on list. Below is my code: &...
0
votes
1answer
78 views

Lightning web component - how to get width of an element in javascript

I want to get the width of an element in js and based on that width want to perform some animations. I am resizing the width of the below div from 1112px to 752px through CSS animation, when it ...
0
votes
0answers
15 views

How to use an apostrophe in a Salesforce HTML email template body

I added an apostrophe to an HTML Email Template and it didn't render in the test email. I'm trying to write: "I'm". I tried &#39;, but that showed up as is. How do I type an apostrophe in email ...
0
votes
3answers
775 views

Visualforce Email Template Not Returning Child Records In Table

Have a visualforce email template (that I had a lot of help with) that works in the "Send Test And Verify Fields" using a record ID# to test, but when the workflow calls the template for an email ...
0
votes
1answer
184 views

Iterate a Javascript map in Lightning Web Component template

I'm not very good with javascript, but I'm trying to iterate over list of values of a map/json objects to show them in an LWC. I'm not really sure if this could be achieved, but here's my sample code. ...
1
vote
1answer
240 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
0answers
31 views

Call Apex method to iterate the value in a lightning web component

Trying to iterate the value in lightning vertical tab, data is showing empty. Can anyone please help me what's wrong in the below code. HTML: <lightning-vertical-navigation compact> ...
1
vote
1answer
474 views

DocuSign Integration Java Script Button

I have a button that when fired sends the document to ALL recipients at once. The Roles on the Template match the DuS Admin Setup Roles in SF. The email addresses shown are just for testing. Below ...
0
votes
1answer
672 views

Creating a FlexiPage with api version 38.0

i'm having troubles creating a FlexiPage from the API. Here is my code: <?xml version="1.0" encoding="UTF-8"?> <FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata"> <...
1
vote
1answer
224 views

LWC: conditional display of message

I have a Lightning component I need to display on a standard lightning page only when the record being displayed meets 2 conditions. Being new to LWC means I'm learning on the go, and am struggling ...
0
votes
0answers
13 views

How to make Theme Navigation Menu visible when using the Help Center standard template?

Even when the Theme Navigation Menu is set through the builder, it does not appear in the page. When inspecting the page, I've found that the container of the Theme Navigation Menu, the one with ...
1
vote
0answers
21 views

Error when trying to export Community template

I am receiving the following error when trying to export a Community template. We don't have over 175 pages and theme layouts in our Community. "We ran into a few problems. We can't validate the ...
0
votes
0answers
129 views

Issue unwanted blank page is created in CPQ Quote template?

I am working with CPQ Quote template. In my Quote template, a blank page is created unexpectedly. I tried to remove it by using, removing space in the content, removing the margin from content, ...
0
votes
2answers
892 views

Render as pdf with css not working properly

I have a controller which calls a couple of function. The variables are then send to the apex page, which is mostly a html page. When I am redirecting to the visual force page, the report I want to ...
3
votes
2answers
3k views

LWC: Inside an HTML template for-loop, set loop variable property to new user-typed input element value?

I'm trying to write a Lightning Web Component (yay, first one). Still in the "proof of concept; can I get user input to propagate around the page?" stage. I have a List<MyApexWrapperClass> ...
2
votes
1answer
108 views

template if:true with get variable is not working

I have a custom part of code that I want to be displayed based on a custom logic cmp: <template if:true={myvar}> <!-- custom code --> </template> js: @track data; get myvar(...
0
votes
1answer
28 views

Remove email signature after sending single email with email template

here is the scenario. UserA has email signature in his setting. When clicking on a custom button, a template email is sent out to Person_B with sender UserA's name. Now the sent out name has 2 email ...
0
votes
0answers
169 views

Preview lightning email template content

I need to preview an email template before sending it, but also need to be able to see the merged fields. The initial task I was able to accomplish using /email/templaterenderer. It's showing the ...
0
votes
1answer
827 views

Email Template Custom Font

Is there any way to add a custom font on an email template? @import works on some email clients, but not on GMAIL for example, same as @font-face or any CSS approach I've taken. I've also tried copy/...
1
vote
2answers
502 views

CPQ - Template Section - Group Field - Sorting

I am in the process of using the Group Field in the Template Section object to Group a Line Items section, and am hitting an issue. It seems to be grouping in alphabetical order of the picklist ...
0
votes
1answer
195 views

HTML Source bug sending Rich Text field in VisualForce Email Template

Background We are using Lightning. I need to create an email template that a user can use on a custom object's Activity > Email tab. The object records meeting minutes and includes a rich text ...
3
votes
2answers
3k views

Creating custom Community Template

Is it necessary to use the templates (Kokua, KOA, Napili) provided by salesforce for building community or we can create our own community templates? If yes, how is it possible. i am unable to find ...
0
votes
1answer
127 views

email templates loop

I have some strings variables: test1 test2 test3 ... Each of them with some text inside I have in my html email template : test1 test2 test3 .. I would like to know how to iterate with : body = ...
0
votes
1answer
88 views

Is it possible to create a template for cloudpages?

Does anyone know is it possible to create a template (similar to an email template where I can put the code in behind, and have blank slots for users to pull content blocks into). Also, Id like to ...
0
votes
1answer
79 views

Lightning Activity Email template with junction

How do I make a template for a record's Activity > Email tab in Lightning so that the user can send the record's info (including info related by junction) to other users and to email addresses ...
1
vote
0answers
83 views

Full Handlebars Markup Language in Lightning email templates?

Is it possible to use full Handlebars Markup Language (like Handlebars helpers, #each, #lookup, and callbacks to controllers) in Lightning email templates? I want to create an email template for use ...
0
votes
0answers
18 views

Formula field in word template mail merge

I'm trying to include a formula field in my word template to do mail-merging but my formula field does not appear. Other custom fields shows properly but not my formula fields. Any help?? Thanks in ...
1
vote
1answer
943 views

Custom Font not working In Custom HTML email template

I have created static resource and included ttf file for gotham font, when I used below code in visualforce page it is rendering as expected. but when same I included in custom html email template it ...
0
votes
1answer
66 views

Workflow - Error - Visualforce email template - External image

I'm getting a weird error when trying to use my workflow to send out a visualforce email template. The visualforce email template generates a PDF attachment (from VF component) and works fine when I ...
1
vote
1answer
329 views

Change a variable without showing it in ISML

Is it possible to change a variable in ISML without showing it? Here is what I tried: <isset name="sessionVar" value="${1}" scope = "session"/> ${session.custom.sessionVar} <br/> ${...
1
vote
1answer
110 views

HTML error in VisualForce email templates

I created an email template in HTML and want to use this for a visual force email template. When inserting the HTML my code gives many syntax errors. When using the same HTML in a regular HTML ...
0
votes
1answer
350 views

HTML template in marketing cloud

I created a template in marketing cloud using own html. While editing this template, in the layout view 'block', 'content' and 'layout' everything is non usable/editable and I can edit the template ...
4
votes
0answers
325 views

LWC: Add a region in custom community theme

I would like to add a region in my custom community theme. For now I am only able to add my LWC components in the body area and would like to know how I can declare regions in my theme to accept LWC (...
-1
votes
1answer
19 views

Visualforce email template IF condition for Second Opportunity Owner field

I have an email alert that goes out when an Opportunity is changed to Closed Won and it says who the Opportunity Owner is. Sometimes, a second salesperson is involved in the deal, so I have a field ...
7
votes
2answers
508 views

Syntax guide for working with Salesforce Web Components

I am struggling to find any syntax documentation related to building a Web Component, and could really use some help. For example, in my JS file I make a call to a custom APEX api that returns a ...
5
votes
1answer
14k views

Using arithmetic comparison in if:true statement in Lightning web component [duplicate]

I came to a situation where I want to render a text based on there index value. So, Let's assume I am having a loop which is having an index variable and I want to show some specific text if the index ...
0
votes
1answer
98 views

Calling Email template in Visual Force page using Iframe

I'm new to this sales force platform.I'm facing the problem to call the email template in visual force page using iframe. my code look like this. <apex:iframe id="previewFrame" title="HTML ...
0
votes
0answers
23 views

Need help getting records from a custom object [duplicate]

looking for some help with this. I have a custom object named Annual_Sales_Targets__c with a master detail relationship to Contracts. When a contract is activated, a workflow will kick off and send ...
2
votes
0answers
394 views

Error when trying to deploy Lightning Page: “Error: You can't change a Lightning Page's associated template”

Relatively new to the SFDC world and I've come across this issue when trying to deploy Lightning pages to a new sandbox. When deploying my lightning page via workbench I get the following error: ...
-4
votes
3answers
88 views

test class failure

public void gettemplatebody() { if(selectedtemplateName!='Select Template') { Emailtemplate selectedtet=[SELECT id,Name,subject,body,htmlvalue,markup,templatetype FROM ...
1
vote
0answers
28 views

Search bar doesn't work on pressing `Enter` keypad in Community

I have a community with template Customer Account Portal. It has a global search bar which is built on Search template page. Community page looks like this Now When I enter searchstring in search ...
2
votes
1answer
28 views

Duplicate Rule not firing for sample data Installed from Trialforce Template

I found out today that a duplicate rule on one of my objects does not fire. After doing a lot of testing I found out that it only doesn't fire for records which were installed as sample data when the ...
0
votes
1answer
185 views

Dynamic Contract Templates generation

We're willing to automate the creation of the Contract Pdf sent to the client in order to get a subscription package to our services. We've checked some existing solutions in AppExchange like Conga\...
0
votes
1answer
256 views

How am I able to get Opportunity Team Members onto an Email template?

I would like members from the Opportunity Teams from Team Role 'Solutions Consultant' only, to be displayed on an HTML Visualforce email template. I would like the code to have the same format as: &...
0
votes
1answer
262 views

Visualforce email template issue

I created a visualforce email template that we use with our quote approval process, however some of the merge fields are not showing up on the email when submitted by certain users. I used to have ...
0
votes
1answer
460 views

Is it possible to have a background image in Napili template community through point and click?

I am trying to insert a background image for the entire home page and I need to put a rich text editor component over the image with a welcome message. In branding, I am not able to find an option to ...
0
votes
1answer
6k views

Override background image/color in the community using the Napili template

I've been testing the customization capabilities of communities with napili template. One of the very basic things I cannot easily do is, branding. I can update the logo, but not the background. It ...
0
votes
1answer
1k views

How to display Mile stone tracker in record detail page

we are going to setup entitlement process in our org.we created templates as well as Entitlement and milestones. But now as per standard we are able to display milestone tracker in case feed page. ...