Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

New answers tagged

0 votes

Lightning Dual Listbox style

I removed selected-label="Selected" and the box was aligned correctly .
user avatar
0 votes

How to remove the Unwanted string from my Iframe tag it only show's up in the chrome browser?

It'll be easier to point the correction if you can share the code where you have your iframe. However, for apex iframe the attribute title is used to set the title of your document. For Example - <...
user avatar
  • 116
1 vote
Accepted

Avoid break line when the field is empty breakline

Judging from your comment: The line breaks that were physically entered between your variables are the problem. Since you previewed as text - pure text emails understand and display them as line ...
user avatar
0 votes

Multi column sorting in lightning web components

Suppose you have an Array of Users with properties firstName and lastName. let userArray = [ { firstName: "Shaun", lastName: "Hall" }, { ...
user avatar
  • 741
2 votes
Accepted

Hide/Show columns of lightning-datatable in Lightning Web Components

The only thing you need to do is removing the desired element from the columns array, or use the original set if you want it back. <template> <lightning-input type="toggle" ...
user avatar
  • 96
0 votes
Accepted

Pass a variable from AMPscript block to Client side JS?

You can just print the ampscript variable where you normally set a client-side javascript variable. In the below example, I set the cid to the contactId ampscript you already declare in the top: %%[ ...
user avatar
  • 16.9k
0 votes
Accepted

Salersforce community theme: List-style CSS not working

I have seen a similar scenario in the past. This is working as designed behavior. The aura components are designed to use the CSS of its parent or container (the community template is the parent in ...
user avatar
  • 2,471
2 votes
Accepted

Cannot update list in JS after assigning value to field in that list

You need to modify the original variable. As you've probably noticed, however, the data is read only. tempVar is disconnected from the original data because you used JSON.parse(JSON.stringify(...
user avatar
  • 430k
0 votes

Error: Unknown public property "name" of element <LIGHTNING-INPUT-FIELD>. This is likely a typo on the corresponding attribute "name"

Your problem is related to the fact that you are trying to pass a value to a parameter that does not exist. lightning-input-field component doesn't have the 'name' parameter https://developer....
user avatar
0 votes
Accepted

Child component not getting re-rendered when parent component data is changed in LWC

You need to implement a setter to get this to work properly. Currently when the value from the parent changes, nothing will happen. In the setter you can directly call a method to run your plot data ...
user avatar
0 votes
Accepted

SHOW formatted JSON in LWC

I found below answer.It is working. We just have to make some changes as per LWC. For example, Instead of document.getElementById("json") use template.querySelector(). https://stackoverflow....
user avatar
0 votes

How do I populate a formula text field for an HTML link that would include multiple fields from the same object?

You can use URLFOR for this purpose. <p><apex:outputLink value="{!URLFOR('https://calendar.google.com/calendar/r/eventedit',null,[text=RelatedTo.Name,details=RelatedTo....
user avatar
  • 430k

Top 50 recent answers are included