Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html]

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

0
votes
1answer
26 views

Increase size of Lightning Component to fit properly on a record page

The component I created on the right appears smaller than the activity card. I've tried several ways to increase it's size but have failed. Is there a way to make it look like the card below it? ...
0
votes
1answer
32 views

VF page with dynamically generated HTML code?

I have a custom VF page which is added to a section in the page layout of an object. What I'd like to achieve is to add dynamically generated HTML code to my custom VF page. The HTML is dynamically ...
1
vote
0answers
23 views

Adjsting the height of component dynamically

I have two child component A and B inside a parent component stacked one after other.Component A is supposed to be static and does not contains scroll bar.How ever its height changes depends on ...
0
votes
2answers
48 views

How to make a dynamic picklist field as required in vf?

I am creating a popup which shows some product details along with dynamic contact list.how to make this dynamic picklist as required or through an error when if its not selected or the value is "--...
1
vote
2answers
36 views

HTML Email Template : Looks Okay In The Editor, But Loses All Styling When Sent

I'm trying to create an email template in HTML. I originally did all the styling as an internal style - But later found out that styling must be done as inline css. My creation looks fine in the ...
0
votes
1answer
21 views

HTML link attachments and a bash script to download them all

As the title implies. I'm looking for a bash script that will iterate over html files in a folder and download the files to the same folder. I'm hoping someone in here has run into this before and hs ...
2
votes
1answer
31 views

Webpage mail different from received mail in mailbox with %%view_email_url%%

I've built some AMPscript code that selects two different contentblocks to be displayed next to each other in the same block. The code retrieves all the blocks that have the content_type "themablok". ...
0
votes
1answer
89 views

Add spinner text along with spinner in lightning component

I am trying to add spinner text like 'Please wait while loading' along with dotted spinner. But the text is not displaying . It is displaying just a spinner. Can you identify what i am missing ? <...
0
votes
0answers
13 views

Can't use unsupported font in html

I am trying to change the font for hmtl included in an email and it doesn't work. If I use supported font by html it works like this: String emailBody = '<div style="width:750px;margin:auto;">&...
0
votes
1answer
35 views

Unable to add data to Data Extension via form in Salesforce Marketing Cloud

I created an HTML form and sent an email with that form. When the recipient fills the form and submits it, then the data should be added to the targeted Data Extension. Here is my code: <html ...
0
votes
1answer
19 views

Show email addresses as hyperlink except the comma

Email Address : bob.marley@abc.com , sia@cheapthrills.com Currently we are displaying as plain text. Requirement : To display each address as clickable hyperlink . Current code: <tr> <...
0
votes
1answer
18 views

Auto span tag inside td

I have problem with automatically added span tag in the td element. My code in visualforce page is following: <table class="table table-hover table-bordered"> <thead class="headerRow"> ...
0
votes
1answer
30 views

html-placeholder in apex:selectList: is it real? Or is there an alternative?

I use html-placeholder in apex:selectList with a few selectOptions, but it's not displayed. What can I use to fix it? <apex:selectList html-placeholder="Text here" size="1"> <apex:...
0
votes
1answer
23 views

How to send an arrayList from Apex to Javascript and then to HTML?

I'm new in JS and can't understand, what is wrong here (this is my test value, but then I want to send an arraylist's elements): Apex: public String test{get;set;} public String myApexMethod(){ ...
0
votes
1answer
51 views

How to get multi-select picklist values to display on line indents on visualforce page?

So I have a multi-select picklist with 4 possible values on it. I would like to have them displayed on the custom visual force page I am making on line indents (li) rather than seperated with a ...
0
votes
3answers
31 views

Keep currency symbol and amount on same line in VF

I have create a VF page for (PDF) quote generation however i'm struggling keeping the currency symbol and amount together. Looking at my code ... {!$Label.Quote_PDF_AgreesOnPlanned_Act} <b&...
6
votes
2answers
78 views

How can I force Visualforce to include empty attributes which I have specified?

During my adventures trying to get a <select required="required"> to actually be required, I discovered: If a select element has a required attribute specified, does not have a multiple ...
1
vote
1answer
130 views

Custom font in Email content blocks

Has anyone figured out a way to use custom fonts in Marketing Cloud emails, where the font is specified only with Free Form content block level? There is a hacky solution provided for full HTML ...
2
votes
1answer
41 views

HTML en dash Code Not Rendering in Subject Line

I have a subject line with the en dash HTML code: &ndash; It is not rendering as the actual en dash symbol when the email is sent. The subject line is being pulled from a look up table/DE and in ...
1
vote
1answer
28 views

How to put css swatch inside lightning select

I have a lightning select dropdown which iterates over a list of objects containing colour details, specifically the colour label and it's HEX value. I want to be able to display the hex value as a ...
0
votes
1answer
15 views

I'm making a checklist and I would like this data to be updated/inserted using an iframe or any alternative method Ask Question

So This here is my check list and above it is where my Iframe should display. From my understanding it is not being displayed because of "Clickjacking" protection. Is there any way I can display my ...
3
votes
1answer
426 views

How can I access the html text in static resource file in lightning client-side controller?

How can I access the html text in static resource file in lightning client-side controller? I know how to upload .html file to static resources and how to acquire it using <ltng:require>, but I ...
0
votes
0answers
32 views

How do I set the Default Size & Layout of a MultiPicklist on my VisualForce Page?

I'm wondering how I go about changing the style of my Multi-Picklist? I would Like it expanded by default without the scroll bars. So its showing all the options. This is how it looks when I open the ...
0
votes
0answers
18 views

HTMl Email Template with letterhead in triggers

I created an email alert in a trigger.it's not displaying images(custom html).how could i send email alert with HTML template with letter head.I dont think it doesn't support.is it? below is my code. ...
0
votes
1answer
95 views

Unordered List with no bullets not working with email template

I have a Visualforce Component that has a un-ordered list. I want that list to have no style other then the indentation. Usually with HTML you would just specify the ul css to be list-style:none or ...
0
votes
0answers
12 views

Is it possible to use URLFOR in HTML template for e-mails? [duplicate]

I have an HTML template for e-mails and would like to add an image(logo) in the template in way to display the logo in every change of the environment - sandbox to production. Is there way to use ...
1
vote
1answer
78 views

Type of html emails in the system regarding API

We are creating HTML Emails and I want to get the content of them by SSJS but the problem is their type is not "Email" or "ContentBlock", it is like in the middle of those. I can retrieve their IDs, ...
0
votes
1answer
22 views

Can I associate Multiple campaigns to a web to Lead form?

I have a single web to lead form, based on the lead's picklist value input i would like to associate that particular lead to a campaign is this possible ?
0
votes
1answer
17 views

convert string into format of table

I have a string with JSON notation in VF page and I want to iterate over it and create a table. I am trying to display in table but has not got anywhere. I am looking for some suggestion to achieve ...
0
votes
0answers
26 views

Display multiple tables side by side in excel generated from VF page

I am creating multiple tables in vf page and downloading it in excel but and tables are getting created in multiple rows instead of side by side.I am using style="float:left" I am getting the tables ...
0
votes
1answer
58 views

One touch embedded survey in marketing cloud

Is there a way we can implement one click survey that will be embedded within an email in SF Marketing cloud directly without any third party integration?
0
votes
0answers
93 views

Retrieve email ID pardot

I want to retieve the id of an email within the HTML but I don't manage to reach the email ID : I tried several expressions like : %%_emailid%%, %%id%%, %%email_id%% but nothing works. Do you have ...
1
vote
1answer
72 views

how to remove \n from visualforce page when using escape=“false” on apex:outputText

I need to break the paragraph at the end of the line and add it in next line. So i used substituting new line(\n) with break tag(). Here is the tag that i'm using on vf page. <td> <apex:...
1
vote
1answer
351 views

How to change Snap-Ins onClick for offline button? [closed]

Here is what I have so far. I have here commented out towards the bottom, some attempts at trying to accomplish what I have in the question. I have tried changing the href for the offline button, I ...
1
vote
0answers
196 views

Issue using aura:unescapedHtml

I am trying to display some preformatted HTML data as rows in a table. If I copy the whole string from the controller and paste it into my component it renders correctly. But using aura:unescapedHtml ...
1
vote
0answers
117 views

Lightning Experience: Using custom labels inside HTML Editor

I have a Salesfoce Community and I wonder if is it possible using custom labels inside an HTML Editor component (Community Builder). I've tried it but the customlabel is not being compiled. Thanks!
0
votes
1answer
37 views

Show table headers in a row

I have below table where the headers and data are showing perfectly but in a same column. Instead I need to show them in a proper table format. Unfortunately, I am unable to do so. Can someone please ...
0
votes
1answer
45 views

Personalization String to HTML value

I'm trying to pass a personalization string of %%emailaddr%% to a value of a textbox. I've tried using SSJS and AMPscript but it doesn't seem to be working for me unless I have the wrong syntax. I am ...
0
votes
1answer
23 views

How do I change the background of visualforce page for page 1 and the rest

I have a visualforce page document for which I want to place an full width image on the firstpage and on the rest of the document no image. I tried the following down below but all the pages get a ...
0
votes
0answers
71 views

VF page to Word - Getting an blank page in end and blank space below header of first page

<html xmlns="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"> <head> <meta http-equiv="...
1
vote
1answer
26 views

Custom HTML Email with If statement

I'm still new to HTML, but have built a custom Salesforce email template. It has 5 tables in the body of the email and I created an If statement on the display style for each so that the box only ...
0
votes
1answer
94 views

Ampscript Dynamic Content Blocks

I'm building an eDM campaign for a retailer and I need to create dynamic content that will display content differently for 5 different users. I have these columns within the DE: Gender: Female or ...
0
votes
2answers
80 views

Is it possible to build a chart in email?

I want to build a chart dynamically in the email by using the data in data extension, is it doable? how can i go about it?
1
vote
1answer
84 views

Voice to text transfer in apex input text field in VF Page

I have a requirement to create a visualforce Page where voice will be transformed to text and search records. Can someone please let me know if that can be possible? If yes, please let me have some ...
0
votes
1answer
31 views

Why does HTML not appear as an Email creation option in Marketing Cloud?

I am trying to create an email using HTML paste, I know this option is available as I've used it before however this particular MID doesn't have the option available. Is this something that needs to ...
0
votes
0answers
9 views

How connect SFMC Preference Management with SFDC

is it possible to connect SF with SFMC Preference Management to track the preference of Email Type? HMTL or TXT. For instanc:e In SFDC the customer wants receive the emails as TXT. How can this be ...
0
votes
0answers
96 views

HTML Email Template Image alignment issue

I would like to centre align an image in an email template; but I have to use the HMTL (with letterhead) format. When I add the image it automatically aligns to the left, and when I highlight it ...
0
votes
1answer
138 views

Salesforce Napili Community:How to give background color to the whole HTML body section?

I am using the standard out of the box HTML Editor component but I am not able to give background color to the HTML text. The Code I used is: h3 { background-color: green; } <div id="body" ...
1
vote
2answers
388 views

Lightning “document.getElementBy()” functions not working on page load

I'm trying to perform the following using pure Javascript without jQuery. - I have a lightning component sitting in a record detail flexi-page. - On Loading the record I use Lightning data service and ...
0
votes
1answer
19 views

Need to avoid users performing any task in a tab

I have two forms developed in two different pages using Lightning Aura bundle in communities.Now,The user opens both the forms in two different tabs in UI.The submit button in both forms are enabled ...