Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [html]

Hypertext Markup Language. It is used in Visualforce pages, components, lightning components, forms, templates, formula fields...

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

Charts not getting rendered in dynamic html

Charts not getting rendered in dynamic html. The generated html looks complete and accurate also show the chart data retrieved from the endpoint, just see a blank box instead of rendered chart. Parent ...
mye4569's user avatar
-1 votes
1 answer
38 views

Send Cloudpage content in an email to a set email address

I have an interesting case that I find difficult to solve. The business wants this to be built in Cloudpages (and yes I know it's better to do it in Experience Cloud with custom components). I can't ...
eazy4me's user avatar
  • 392
-1 votes
0 answers
28 views

How can I inject html from a merge field in a Salesforce template (Classic or Lightning)

I have an email template to send out based on Product2 and am trying to insert html from a merge field, but it gets treated as text. The goal is to summarize some info from Product2 in a table. But ...
Jaufret Turner's user avatar
-1 votes
0 answers
22 views

Merge field within html link tag

does anyone know how to include record id into html link tag? Is it possible to include merge field within the tag? for example something like this: <a href="https://domain.develop.my....
foodoxydy's user avatar
-1 votes
0 answers
25 views

format Lightning output Field in LWC as currency

Is there anyway to format the Lightning output field in LWC as currency in UI record-view-form. I am trying below approach. <lightning-output-field field-name='IA_Cost__c' format-style='currency'...
AB Kumar's user avatar
-1 votes
1 answer
40 views

How can I append dynamic value with Href static URL <a href="someUrl" + recordId> [duplicate]

HTML: <template> <table class="slds-table slds-table_cell-buffer slds-table_bordered slds-table_col-bordered"> <tbody> <template for:...
Babai Mukherjee's user avatar
0 votes
1 answer
54 views

How to put a variable/recordId in anchor tag <a href="somelink"+{acc.id} >"

I have a anchor tag where I am using a link inside href Attribute but I want to append a recordId with the link. HTML: <template> <table class="slds-table slds-table_cell-buffer ...
Babai Mukherjee's user avatar
0 votes
1 answer
50 views

Changing lightning-card height

How do I set the lightning-card to a specific height ? I prefer not using around to achieve it. I've tried putting custom class inside but it doesn't work. Styling hook is not working as well since ...
Hieu Hoang's user avatar
0 votes
1 answer
21 views

Colspan not working in SLDS lightning Salesforce LWC

paste the below code in w3 school HTML code. I want the same UI using SLDS lightning but the rowspan is not working as it works using plain HTML tags. I tried all possibilities but they were not ...
Adarsh Srinivasan's user avatar
0 votes
0 answers
42 views

Poppins font is not displaying on mobile devices, its overwriting sans-serif/Times new roman in SFMC email

I want to display my email with Poppins font but on mobile device its overriding either sans-serif or times new roman. Tried many things but same issue <html xmlns="http://www.w3.org/1999/...
Yul's user avatar
  • 7
0 votes
1 answer
35 views

JS classList not working

I have a data structure that is getting returned from apex and I am using that to render some html elements in for loop. Within this elements, I have one lightning-button that needs to be hidden based ...
Akash's user avatar
  • 363
0 votes
1 answer
30 views

Lightning tree grid component not displaying related contacts

I am using a lightning-tree-grid to display accounts with related contacts but cannot display the contacts associated with the accounts. What could be the problem? HTML: <template> <...
code234's user avatar
  • 325
0 votes
0 answers
39 views

Open new record in sub tab from highlights panel

I have a flexipage using the highlights panel component. Our users prefer this as it gives them a quick way to see opportunities onHover from the opportunity related list on a customer record. This ...
rickmac's user avatar
  • 783
0 votes
0 answers
33 views

How to fix SLDS updates in new release, issue for tab icon color

I have following code working perfectly with tab icon color brings up perfectly. Suddenly after today's release patch it got failed, Any idea to enable tab icon color ? HTML: <template> <...
Ragul's user avatar
  • 535
0 votes
0 answers
20 views

Keep richtext codeblock identation and style to chatter feed item

Hi I'm trying to use a richtext in a lwc, in order to accept code snippets (String) denoted by triple single quotes like this: The lwc takes the richtext value and create a chatter feed item through ...
RProgrammer's user avatar
0 votes
0 answers
50 views

Display error message and character count in same line below in lwc

I have a requirement to display a character count underneath an input field, which is a required field. However, I'm encountering an issue: when the user does not input anything and the error message ...
Shira's user avatar
  • 59
0 votes
0 answers
47 views

Why is there a thick blue border appearing over elements when its in focus?

Can someone please help to me understand why html elements are showing a thick blue color instead of a light blue color when active/infocus. This is what I'm talking about: Before, everything used to ...
Mike's user avatar
  • 31
0 votes
1 answer
45 views

Hiding HTML table of code within Ampscript IF-ELSE Statement - Reduce file size?

I am working on an email template with a large number of modules. If I add these modules within the AmpScript IF-ELSE statement - for eg: Display module 1 table of code within in the If statement and ...
user1373287's user avatar
0 votes
0 answers
46 views

Extra Page When Printing Web Pages in Lightning Experience

When printing web pages in Lightning Experience, there is always an extra page. This is true for any Record pages, App Pages from Lightning Component or Lightning Page Tabs. Adding css in Lightning ...
Sid Fortunato's user avatar
0 votes
1 answer
93 views

Static Resource in Head Markup of Experience Cloud Site not loading

I have the following script that I am trying to load in the Head Markup of an Experience Cloud site: <script src= "https://static.soulmachines.com/widget-snippet-1.12.0.min.js" ...
Krishnamurthy's user avatar
0 votes
0 answers
43 views

Lightning:QuickAction Modal not rendering correctly when clicked for the first time

I have a lightning action which includes a lightning aura component. In my lightning component i have applied some custom styling in order to improve the modal view. customAuraComponent.cmp: <aura:...
JackSparrow's user avatar
4 votes
1 answer
145 views

How does persistent browser caching work internally?

What does this option do internally? Enable secure and persistent browser caching to improve performance in caching And when does it reload new HTML / CSS into a user's mobile device? When updating ...
Z0q's user avatar
  • 91
0 votes
0 answers
32 views

Einstein Email Recommendation with Content Builder

I've created a display within Einstein Email Recommendations (using HTML and placeholders/dynamic variables, like src="%%ContentImageLink%%, for example) where it takes dynamic data and populates ...
Rafael's user avatar
  • 1
0 votes
0 answers
26 views

In a Salesforce visual force page i want header image followed by content on every page , but in my case image is overlapping content from page 2?

I am having a visual force page where in i want a header image followed by content , but i want content after the header image with the current code everything was fine in first page but from page 2 ...
Lone Warriour's user avatar
0 votes
1 answer
53 views

How to show place holder when value is ampscript?

When I want to see TT.MM.JJJJ as a default but because ampscript is used it shows dd/mm/yyyy I have added placeholder and timezone as well but it is not working. Could you please advise on that? set @...
Gokce Altunkanat's user avatar
0 votes
0 answers
29 views

LWC: in my LWC component i have looped the orders and i want to display icon and status based on order substatus values, how to achieve that?

Here is my code: <template for:each={Orders} for:item ='record'> <div class="individual-row" key = {record.Id}> <div class="col1"> <span class=&...
Lone Warriour's user avatar
0 votes
0 answers
22 views

SFMC Injecting Code in Incorrect Location in Email Template

I am facing an issue in Marketing Cloud where the code that should be inserted in the <head> of my HTML is being placed in the <body> when I choose to create a template base email. This ...
Mik's user avatar
  • 3
0 votes
1 answer
68 views

Detect cursor in current tab outside of LWC

Hi Im trying to know if a user is idle in a record page tab, and to do it I have placed a LWC in the record page so it could maybe read the outsider events. I have tried using window.addEventListener('...
RProgrammer's user avatar
0 votes
1 answer
150 views

<lightning-formatted-rich-text> converting string to email formatting

I am currently writing a basic search users UI which can search email of users and return based on a search string and bolds the matching chars in the result. I achieve this by adding tags in JS and ...
Dillon P's user avatar
0 votes
2 answers
103 views

Error When Trying to Load a LWC

I have a LWC where I am trying to display a list of records of that same Object, I have been able to insert the record successfully but after that the list has not being displayed, and after some ...
Luis Escalante's user avatar
0 votes
0 answers
87 views

Show different templates when the browser gets resized for LWC

I am trying to create an LWC that comprises of 5 child bricks inside of a parent layout container. I am using these wrapped in lightning-layout-item and layout respectively. In between each of the ...
thTrailblazerSFPro's user avatar
1 vote
1 answer
280 views

LWC css zindex to bring the component on top

I am trying to create a filter popup window with multiple fields, but when dropdown opens up it is hiding behind the buttons, and user is unable to scroll through, how do we bring it on top always? ...
Ajay 's user avatar
  • 1,609
0 votes
0 answers
37 views

Not getting vertical scroolbar to custom datatable in LWC

Hi all I am trying to apply vertical scrollbar to custom data table in LWC its not coming. Can anyone suggest what should be tried My sample code I pasted below. <template> <...
Som's user avatar
  • 1
0 votes
0 answers
23 views

Facing challenges while editing table content in richtext box and formatting tr td and table tags

i am havig a requirement where in reports needs to be generated with a data in structured format, i have used and tags to create a table with hidden borders, here the issue is that i was not able ...
Lone Warriour's user avatar
1 vote
1 answer
236 views

LWC: Table Body Colspan Not Matching Table Header Span When The Table Body is in a Child Component

I'm working on an LWC to render a report in a Lightning Page & have come across an issue in my HTML that when I have a Table Header in the parent component and table body in the child component. ...
RedQueries's user avatar
0 votes
1 answer
631 views

How do I set the height of a div programmatically in the LWC's HTML file?

I have an outer div which wraps an inner div with a dynamic amount of content in it. For reasons that are beyond the scope of this question, I want to set the height of the outer div to match the ...
imfromthepast's user avatar
0 votes
0 answers
54 views

div not working as block element in renderAs Pdf in VF page?

I am generating a pdf using renderAs pdf in VF page. In the page the <div> is not working as it should(block) , It is overlapping with its parent div .Here is the pdf: Here is the VF page code: ...
Sahil Gupta's user avatar
0 votes
0 answers
132 views

Pardot Form Hidden Field to Pull in Value from another Form field

I have created a Pardot form (not a form handler). The form contains 2 fields called "Phone" and "Latest Phone number filled in". The "Latest Phone number filled in" ...
user120752's user avatar
3 votes
0 answers
215 views

How to inherit css from parent within the child using light dom?

I have a child component that is used to recursively iterate through a tree. The parent component has css that is using the shadow dom and the child component is set to use the light dom. While ...
usernameabc's user avatar
0 votes
2 answers
95 views

How to position third button on the same line at the far right

I have 2 buttons that are at the far left, beside each other. I need the third button to be positioned at the far right, but not using margin-left. I need a different way to do that using slds. I'...
Lisa Johnson's user avatar
0 votes
0 answers
42 views

LWC Component when deployed to source not showing on the preview browser

well i'm new in lwc but whenever i deploy a componant in lwc it get success in status but in preview its not showing proper outpur /rendring output.    <lightning-button label="Edit&...
LWC Member1's user avatar
2 votes
2 answers
2k views

How to style child component from parent component css?

I have two components that have a parent and child relationship. I am trying to apply css from the parent component's css file to the child component without having to write it in multiple places. ...
usernameabc's user avatar
-1 votes
1 answer
307 views

Adding if conditional logic in Salesforce Lightning HTML email templates

need to add the case description in the lightning email template if the case origin is "Website". As it's currently not possible to use conditional statemements in email template in ...
user3620804's user avatar
0 votes
1 answer
240 views

How can I remove onmouseover Event onclick of a button LWC

<div class="slds-col slds-size_8-of-12 messagecontainer" onmouseover= {handleMouseOver} onmouseleave={handleMouseLeave}> What I want is when I click a certain button I want to nullify ...
SFDC_learner's user avatar
1 vote
1 answer
187 views

How to recursively iterate through multi nested arrays in the lwc's html file?

I have the following data and nested a way to recursively call the same logic so that regardless of how many levels are in the data, the data is always printed correctly in a nested format. Example ...
usernameabc's user avatar
0 votes
0 answers
25 views

Using a result from SSJS array to populate dropdown HTML list [duplicate]

I'm building a CloudPage which involves the user selecting a Data Extension from a list, and I'd like to populate the dropdown list with a list of data extensions from a specific folder. I've managed ...
TCassa's user avatar
  • 878
0 votes
0 answers
41 views

HTML/CSS style column

I need some help with my HTML email template. I am trying to copy this format: However, this is what the result I am getting: This is a PDF attachment and here's my code block for this section: <...
Fatima Querimit's user avatar
0 votes
0 answers
76 views

Email Template Content Block Area - Overwrite CSS

I am working on revamping email templates in Marketing Cloud for non-technical marketers to use. I am running into an issue/haven't found a solution for overwriting CSS in content areas that a user ...
Tazzy1234's user avatar
0 votes
0 answers
136 views

PDF from URL is not opening in Modal POP UP in LWC

I have requirement when I click on button it opens the POP up and in that PDF get loaded from URL within that pop up and on close button pop up get closed. So below is my code it is working fine on ...
MANISH JADHAV's user avatar
0 votes
1 answer
2k views

Override the style (color)of Lightning-button-icon on bare variant in LWC

Good evening, As the title say i'm trying to override the the icon style (color) of Lightning-button-icon on bare variant in LWC, as per the documentation of salesforce there is no guidelines on the ...
joao couto's user avatar

1
2 3 4 5
22