Questions tagged [template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
17 views

I need to translate a picklist selection to equal different text and then add to a text template

Apologies I am a total newbie to Flow Builder. I think I need to create a new resource and have tried a variable, constant, & formula Resource Type. The input is from a pick list and I want to ...
user avatar
0 votes
1 answer
14 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
0 votes
1 answer
66 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:...
user avatar
  • 3
0 votes
0 answers
42 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"> &...
user avatar
  • 2,393
1 vote
0 answers
31 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"> <...
user avatar
0 votes
0 answers
31 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 ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
  • 160
0 votes
2 answers
100 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={...
user avatar
  • 127
0 votes
1 answer
129 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: '...
user avatar
0 votes
0 answers
991 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 ...
user avatar
  • 83
1 vote
1 answer
61 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 ...
user avatar
  • 2,068
0 votes
0 answers
24 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 ...
user avatar
0 votes
1 answer
213 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 ...
user avatar
  • 517
0 votes
2 answers
22 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 ...
user avatar
  • 79
1 vote
1 answer
47 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 ...
user avatar
1 vote
1 answer
396 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 ...
user avatar
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}> &...
user avatar
  • 1
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 ...
user avatar
3 votes
0 answers
208 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 ...
user avatar
  • 2,306
0 votes
1 answer
191 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? ...
user avatar
0 votes
0 answers
93 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 ...
user avatar
  • 55
3 votes
0 answers
413 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 ...
user avatar
  • 451
1 vote
0 answers
60 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?
user avatar
1 vote
1 answer
942 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 ...
user avatar
0 votes
3 answers
385 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 1
1 vote
1 answer
6k 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 ...
user avatar
0 votes
1 answer
330 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 ...
user avatar
  • 111
3 votes
1 answer
854 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 ...
user avatar
0 votes
1 answer
779 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 ...
user avatar
  • 355
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 ...
user avatar
  • 125
0 votes
1 answer
185 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 ...
user avatar
  • 5
0 votes
1 answer
2k 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: &...
user avatar
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 ...
user avatar
  • 491
0 votes
0 answers
91 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 ...
user avatar
2 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. ...
user avatar
0 votes
0 answers
75 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> ...
user avatar
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 ...
user avatar
  • 1,387
1 vote
0 answers
211 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 ...
user avatar
3 votes
2 answers
15k 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> ...
user avatar
  • 1,129
2 votes
1 answer
660 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(...
user avatar
  • 771
0 votes
1 answer
569 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 ...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
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 ...
user avatar
  • 33
0 votes
1 answer
869 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 = ...
user avatar
  • 33
1 vote
0 answers
159 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 ...
user avatar
  • 322
0 votes
1 answer
205 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 ...
user avatar
  • 63
0 votes
0 answers
55 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 ...
user avatar
  • 33
0 votes
1 answer
179 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 ...
user avatar
  • 322