Questions tagged [template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How to replace Appendchild method in LWC?

I have this problem when I try to load my map(Don't pay attention to the look of the sidebar, I'll fix it later). Everything looks fine but when I try to click on my markers,it finds the correct ...
0 votes
0 answers
23 views

Use 'ContactEmail' field of Case in Lightning email template

I need to use the value of the "ContactEmail" field in a Case Lightning template. I wrote it manually, but the merge is not working. I even tried a classic template and it didn't work either....
0 votes
3 answers
426 views

Translate CPQ Quote Template Content

Unable to use 'Template Content Variable' while translating Template Content record. Requirement is I need to translate text in my template content to specific languages on quote document. Please ...
0 votes
1 answer
51 views

How can you get the merge field to take a url field from an object and set it to show up as a picture image in lightning email template?

I am trying to have Salesforce LEX Email Template populate a specific image from a field that's from a Account object and (fyi) the field data type is URL. My idea was simple, put the url into the ...
0 votes
0 answers
34 views

Crop Image in Visualforce PDF Render

I am displaying an Image in a visualforce email template attachment rendered as PDF, this image dimensions are fixed to 500x250, I would like to crop the bottom part and right side and just scale the ...
0 votes
0 answers
47 views

Two level iteration not working in LWC

I have two level of iteration in LWC, and the second iteration is not displayed even if there are contents in it : <template for:each={calendarCol} for:item="ccd"> &...
0 votes
1 answer
159 views

How to create a Layout based on Dynamic Columns in LWC

I have a requirement that if I have to show 5 fields (fields can be any number, this is also dynamic) and the column value is 1, then it should be displaying the layout with a single column. Similarly:...
1 vote
0 answers
32 views

template does not render even when condition is true

I have a tabset in my html, inside a template with a if:true={condition}. This is the code: <template if:true={dealSelected}> <lightning-tabset variant="scoped"> <...
0 votes
1 answer
1k 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"> <...
0 votes
0 answers
43 views

apex:outputField not aligning text to the right

I have a visualforce email template, and I have a field with rich text where the text is Right aligned. I need to print it in the email attachment as pdf but it's always shown as left aligned, i tried ...
0 votes
0 answers
25 views

Is it possible to create a templated based email message using only ampscript?

Is it possible to do that, creating a script where we can set up the name of our email message and pick the template based on its id o something, then create it in the content builder ? with only a ...
1 vote
0 answers
69 views

Error Messaging Template

I'm trying to send a message via whatsapp using the Messaging Template and although the message arrives on my phone, this error is happening in the Messaging Template Error Log: Does anyone know why?
0 votes
2 answers
202 views

LWC: change class of lightning-input checkbox depending on status

I need to give a checkbox a class name depending on whether the checkbox is checked or not. The checkbox is being displayed inside a lwc template. How can I achieve this? <template for:each={...
1 vote
2 answers
154 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 ...
0 votes
1 answer
184 views

How to use '==' in Template string in LWC? [closed]

I want to set check array value dynamically while looping in template. My array: Products =[ {ProductName: 'JSON1', Status: 'Active'}, {ProductName: 'JSON2', Status: '...
1 vote
0 answers
1k views

Dynamically building a record edit form from fieldset

I am working on creating a lwc that builds a record edit for dynamically for case closure, to replace the classic functionality of the Case Close Page. I have a simple APEX class that I can pass a ...
0 votes
1 answer
264 views

Translate CPQ Quote Document with custom (VF) template content

I'm trying to understand how one can get static text on a custom template content translated to the chosen language while generating a Quote Document. I tried using custom labels with translations but ...
1 vote
1 answer
79 views

How to do binary conditional rendering lightning web component [duplicate]

I have created a lightning web component to show several related object tables on a detailpage. Above one of the tables I want to show some extra specific data related to one of the object tables. We ...
0 votes
0 answers
34 views

Einstein analytics\App template\Dataflow and recipe

i have a problem with my app template because i mixed dataflow and recipe. There is an dataflow/recipe/dataflow order execution to build the dataset whereas when you run the app template it runs ...
0 votes
2 answers
23 views

create sales template

I received this inquiry from the Sales team. Is this possible? From my understanding, it is not possible, but a second opinion would be helpful. I wanted to create sales templates to automatically ...
1 vote
1 answer
57 views

Record page link is not appearing in the email

I am sending out an email from my code after a certain action, and I am trying to add the record link to it. But in the email that is being sent out, the link of the record page is not appearing or ...
1 vote
1 answer
619 views

LWC: Can a "<template for:each=" be used with an inner "<template for:each=" where the inner for-each gets its value using the key from the outer?

I was looking to do the following and I'm not sure if it's possible in LWC. I have a list of records which I'd like to loop through in the UI. I also have a map of records where the key is the iD of ...
0 votes
2 answers
2k views

I would like to disable a custom button once after clicking it in LWC? [closed]

<template> <lightning-button class="slds-m-left_x-small" label="Save as Draft" type="submit" name="Save as Draft" onclick={handleSubmit}> &...
1 vote
1 answer
4k 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
2 answers
1k views

LWC template button controls alignment issue

I have this alignment issue with the next button I have at the bottom, I am not sure how to align inside the box. The same code works perfectly in another scenario, but it had a smaller text in the ...
3 votes
0 answers
216 views

Clarification for all Data Extensions' templates

I would like to clarify several Data Extensions templates since there is almost no documentation available. To be exact, I would like to know what are the use-cases and implementation steps for those ...
1 vote
0 answers
39 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 ...
0 votes
1 answer
228 views

How to draw fields of different types using for:each in LWC

I'm trying to draw a set of different fields (with type text, number, picklist and other) using for:each, but I get all identical fields (they differ only in names and labels). How can this be fixed? ...
0 votes
0 answers
104 views

Data not rendering in salesforce UI LWC

I am new to LWC i have created a simple quiz app but the data is being not rendered in the salesforce UI . I have checked the code correctly but could see still the data is not being rendered in ...
3 votes
0 answers
490 views

How To Create a Pinned Region in Custom Page Template

In a Lightning App, I've already created a custom page template successfully - relatively straightforward. Now I need to create a custom page template that includes a pinned region, like in some of ...
1 vote
1 answer
1k views

Nested tables with different headers and data LWC for:each

I have a requirement to create a component that is essentially 2 tables, parent/child. The parent table is Subscriptions, and the child table is Subscription Products that are related to that ...
0 votes
2 answers
2k views

LWC Template if:true Directive not working

I'm trying to conditionally hide the lightning-tab,using if:true directive .The "courses" array is populated or empty using @wire adaptor.I am trying to use if:true condition to check if ...
2 votes
2 answers
739 views

Quote Line Item Description vs Product Description

I don't understand the relationship between Product Description and Quote Line Item. They seem to be the same, yet they're not. I'm trying to create Rich Text description for a Line Item In a Quote ...
1 vote
1 answer
7k views

LWC onClick for div not returning id or data-id for either target or currentTarget

Here is another issue I can't seem to figure out, had it working in past project, did the exact same thing and nothing. No matter what I try the event param will not give back the id set in the ...
0 votes
1 answer
350 views

Create case with template via REST API

I would like to create a case that asks for data to be filled in via something like an HTML form. My research so far indicates that a Template is the weapon of choice for the "form". I want ...
3 votes
1 answer
906 views

How to add custom components to the new Email template builder in Salesforce sales/service cloud

I am trying out the new Email template builder in Salesforce service cloud (winter 21). Here you can drag standard components to the email canvas and configure them. I would like to have some ...
0 votes
1 answer
816 views

Auto focus to first cell of empty row in lightning datatable when new is clicked

I have a Add button and a lightning datatable. When I click on add button I want to add a row to datatable. Now, Instead of showing a popup (after clicking add btn) I want to show an empty row and ...
0 votes
1 answer
199 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
1 answer
3k 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: &...
2 votes
1 answer
4k 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
0 answers
101 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 ...
3 votes
1 answer
11k 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
1 answer
749 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
0 answers
83 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
1 answer
2k 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 ...
1 vote
0 answers
222 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
2 answers
5k 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
2 answers
16k 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
1 answer
722 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
1 answer
604 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 ...