Questions tagged [template]
The template tag has no summary.
97 questions
0 votes
1 answer
310 views
lightning-input-rich-text value property does not correspond to the actual content displayed
let editorContents = this.template.querySelector("lightning-input-rich-text.myclass").value; the above line returns null when the contents of the editor has just one word. After I type a ...
0 votes
2 answers
335 views
LWC render logic resetting previous records
I am trying to have an LWC where the user can add rows and the new row will render fields based on the user selected value. I have 2 issues with my LWC After user selects first field picklist value ...
1 vote
2 answers
352 views
Comprehensive documentation on creating embedded app template for CRM Analytics
We are trying to build a salesforce crm analytics "embeddedapp" template type which can be auto installed in any subscribers org and added to a lightning record or home page. Where we are ...
1 vote
0 answers
73 views
Unable to set short name on document clause so that it can be added to word template
I am using the CLM feature of Salesforce and want to generate a contract document using document templates. I have a Word document with the text and some of the text there, is clauses that may be used ...
0 votes
2 answers
382 views
Can we pass email body in API payload for sending email in salesforce marketing cloud?
I am exploring Salesforce marketing cloud's email APIs but am unable to find any email send API that allows sending email body (HTML content) in the send API like Braze (braze api). Is there any ...
0 votes
1 answer
1k views
Setting selected value of a lightning-combobox does not show when inside a <template for:each> tag
I have a LWC that displays anywhere from 1 to n lightning-combobox components. Since the number of combo boxes needed is unknown, the combo boxes are within a for:each directive: <template for:...
0 votes
1 answer
221 views
Salesforce Closed/Won email
I'd like to display account information, such as company registration number in the opportunity closed/won email but it doesn't pull through. What am I doing wrong: Sales Won notification Opportunity ...
0 votes
1 answer
81 views
Share artifacts between two packaged Analytics templates
My Managed Package should contain two Wave/TCRM/Analytics templates: FULL: Type app for subscribers with a Full Analytics Studio license EMBEDDED: Type embeddedapp for subscribers with NO such ...
0 votes
1 answer
2k views
Template Expression Doesn't allow for Computer Expression in lightning-input-field
I have been trying to iterate through and access some data that I'm getting from an apex call. I have a list of field IDs that I get from a field set something like this.positionFieldIds=['Name', 'Id',...
0 votes
2 answers
1k views
render child component div in lwc by matching data-attributes on button click
I have a component that displays a list of questions using a for:each. For each question rendered I have a child component (which is a simple form with a few fields) to capture a followup question. I ...
2 votes
0 answers
844 views
undefined value from html button value attribute
I am iterating an array in template and on the button click I am trying to get the value of selected element but the value coming is undefined <template> <template for:each={pages} for:...
0 votes
1 answer
681 views
What is the best way to use one org as a template for another org?
Purpose is to save time, I've been reading about Trailforce - templates created from one org for different customizable orgs (if I understand it right, but that seems like a complicated way with ...
0 votes
1 answer
228 views
How to overwrite LWC template CSS
I have a LWC component with a table and want to make each row formatted as currency. I know with HTML we can use the format-style="currency" but I think the template is overwriting this ...
0 votes
1 answer
32 views
Don't see apex data
I have such code: JS @track messageBody; @wire(getDataFromController) emailTemplate ({ error, data }) { if (data) { this.messageBody = data[0].Body; //EmailTemplate ...
0 votes
0 answers
197 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"> &...