Hypertext Markup Language

learn more… | top users | synonyms

2
votes
0answers
13 views

How can you display an email image for mobile devices only?

We are trying to display an image only if the user is on a mobile device. Here's what we have so far: div style="display: none; max-height: 0px; overflow: hidden; line-height: 0px;" ...
1
vote
1answer
36 views

Receiving parse error for landing page HTML Body

When trying to preview one of our landing pages, we are running into the error below. I can add HTML content if necessary. An unexpected error has occurred! Error Message: An unrecognized ...
1
vote
1answer
19 views

Have Superscript or a complex html tag inside AMPScript

How can I use some complex html tag inside the ampscript and then pass it to email body? For example, I need below tag inside AMPScript on preheader. <sup style="font-size: 10px; line-height: 0; ...
4
votes
1answer
81 views

How can I use the html (pass through) attributes in Salesforce

I have create a VF page which is accessible on mobile through which I can take pic and attach it to the selected record. For this I have created a input tag in html <input type="file" ...
3
votes
1answer
34 views

escape quotes in inline html of the push function in Visualforce page

<div id="OffLocations" style="width: 100%;"/> <script> //JS code... var officeList = new Array(); <apex:repeat value="{!OfficesOpen}" var="off" > officeList.push('<table ...
0
votes
0answers
15 views

Alert message is coming after automatically creating Case and Contact from Prechat form in Live Agent?

We are using Liveaget to support customers.As per one of my requirement,I've implemented that automatically creating case and contact when a chat initiated.Here this functionality is working fine ...
0
votes
0answers
70 views

Display Rich Text field value with proper alignment in page block table column

I need to display a column value with the proper format. Let me explain my situation, Am entering hint values in a Rich Text field and trying to display it in a pageblock table column.Am using show ...
2
votes
1answer
27 views

Problem in using $Component notation

On my visualforce page there is an input text field and two buttons.I am trying to hit the second button on my page with the 'enter' key by calling a javascript on text field, where in my target is on ...
3
votes
1answer
47 views

Load mustache files on visualforce

I'd like to move .mustache code to static resources folder /views/.mustache and load it on the page like: <script type="text/html" id="casesView" src="{!URLFOR($Resource.styles, ...
3
votes
0answers
37 views

Trigger - SObject.addError with html tags always escape

I believe it's a known issue, but I was wondering if there is still no work around this. In my trigger, sobject.addError always escape my html tags even if I set escape to false. This is really ...
0
votes
0answers
45 views

Creating a stopwatch in salesforce which calculates total time elapsed without using apex or visualforce

I had a request from client to create a stopwatch within Salesforce. I would like to share what I did, and see if anyone has better ideas. Scenario: Client wishes to to create a stop watch which ...
5
votes
1answer
142 views

Salesforce reformatting HTML in visualforce page when rendering SVG

So, I have this simple visualforce page: <apex:page standardstylesheets="false" showheader="false" sidebar="false" docType="html-5.0" applyHtmlTag="false"> <div> <h1> ...
3
votes
1answer
46 views

Header of Community

HTML Header of community is not working <html lang="en"> <head> <link href="/resource/communityResources/css/bootstrap.min.css" rel="stylesheet"/> <link ...
1
vote
1answer
105 views

Visualforce: Pass inputHidden value to controller variable

I am attempting to use jQuery autocomplete to pass values to my controller. Autocomplete doesn't seem to work with apex:inputField so I am forced to use an html input. The problem is I can't seem to ...
2
votes
1answer
29 views

Id attribute on apex elements, not the same as html elements?

Does the 'Id' attribute work the same for apex elements as it does for html elements? The anchor tag below, gets the background image, but the outputlink does not. Am I doing somthing wrong? Can ...
4
votes
1answer
76 views

javascript Change div color based on controller value

I have a div which is a circle within a circle. I want the outer ( class="circle") circle to change color based on value of a number. for instance, red if greater than 20, yellow if less than 10 and ...
5
votes
1answer
40 views

Setting Font Face for Visualforce Email PDF attachments “messaging:attachment”

I'm having lots of trouble setting font faces for VF Email PDF attachments (see my code below). I've tried the conventional "font" tag with no luck, even CSS doesn't work! What am I doing wrong? ...
2
votes
1answer
39 views

apex:includescript in html

I need to include script in my community header page.for this I need to include html script in html page.what is the equavalent code of below in html <apex:includeScript ...
2
votes
1answer
48 views

Knowledge Management - HTML vs. Rich Text vs CSS

We have thousands of articles. These articles will be eventually public facing on a website. We need our internal Knowledge Management Moderators to be able to easily revise, update and upload ...
6
votes
1answer
183 views

How do I start to debug my own Visualforce/JavaScript?

This question is intended to complement How do I start to debug my own Apex code? as sometimes questions are asked here that could most easily sorted out by the questioner using their browser's ...
0
votes
1answer
110 views

Why won't HTML formatted mails show correct in Salesforce on a case (Email-to-Case functionality)

I have enabled Email-to-Case functionality and in Email-to-Case settings checked: Enable Email-to-Case Enable HTML Email Enable on-demand service And routing adress is also set up. Salesforce creates ...
1
vote
1answer
57 views

Visualforce component use custom id attribute

Any apex visualforce component created with a custom id, results into an html component created with an id which is prefixed by the their parent's id. <apex:outputPanel layout="block" id="hello" ...
0
votes
2answers
282 views

How do I change the color to header facet of an apex:datatable

I'm able to set the color of my dataTable, but how do I change the color of the first line? So here, I'd want to apply a background styling to <apex:facet ...
1
vote
2answers
150 views

How to put a border around a group of datatables

I have 3 <apex:dataTable> in my component. I'd like to put a border around all 3. I'm not getting it however. Any suggestions? <apex:component access="global" controller="myCont"> ...
2
votes
0answers
81 views

<script> tag generated by salesforce after </html> tag

I am building a website using templates and apex pages. In my apex page I have the option applybodytag and applyhtmltag set to false and I use the <head> and <body> tags in my template ...
-4
votes
1answer
119 views

Required Field Not work in Safari Browser [closed]

I have tried following code for make the required field to notify the required field but its not working in safari browser. Code: <form action="" method="POST"> <input required ...
1
vote
1answer
195 views

How to use html textarea compnent in visualforce page?

I am having a field, Final_Step__c which is of data type Text Area. I am showing it in VF page: but, due to maximum length issue of <apex:textarea> i wanted to use html <textarea> ...
1
vote
0answers
111 views

Render text as HTML in visualforce page or custom field?

I would like option for users to post text as html to a custom object page layout. (custom field doesn't seem possible as it looks like Rich Text field doesn't render HTML) Moving from JIRA to ...
3
votes
3answers
242 views

HTML equivalent of apex:inputFile?

Is there a html equivalent of <div id="file"> <apex:inputFile value="{!attachment.body}" filename="{!attachment.name}" id="file" title="Upload Attachment" ...
2
votes
1answer
78 views

Can I append apex elements to html with jQuery?

In a visualforce page, if I have a DOM completely created dynamically with jQuery, could I append the following code dynamically too? <div id="file"> <apex:inputFile ...
2
votes
1answer
50 views

Phone call link in mobile version of an email - help

I am struggling putting a mobile call link onto an image that works in the mobile version of the responsive email. Here is the email: Link The image on the top with the phone number is the issue ...
4
votes
1answer
95 views

How to load static javascript resource in HTML Component

I've uploaded a jQuery library document into our SF Shared Documents and want to be able to reference that document in a sidebar HTML component. I've tried many variations of the below with no luck: ...
1
vote
0answers
54 views

Edit the email template content before sending to the user

I have created a custom(without using letterhead) email template with HTML content.I have made the contenteditable=true in the HTML version. But when I try to edit the email template and send the ...
3
votes
1answer
100 views

Show a components of div tag based on condition

Hi Friends my second question here, got an excellent answer for the first one: I have displayed a div tag as below: <div class='tabHeaderSection cb'> <ul> <li ...
2
votes
1answer
190 views

Preloader in Visualforce page and align text in the center

I have added a circle by using the HTML SVG tag in a VF page. When i render that page as PDF, it's not showing that circle. Is there another way to add small circle but also to be visible when ...
0
votes
1answer
204 views

Issues moving a page into VisualForce

have a page that was coded outside of force.com and I have to move it into a Visualforce page. Then, just for kicks, I took the source of the page out of force.com (where it doesn't work) and created ...
0
votes
1answer
139 views

Extra IMG added to HTML body of an email message sent by Messaging.sendEmail

I have quite simple code that sends a message with HTML body to a user. Here it is: Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage(); ...
1
vote
2answers
64 views

Dynamic Account Search Report on Sidebar

The following homepage component passes the value from an HTML input to a URL, using the value as the filter criteria for 3 separate parameter values. Everything works fine, except it doesn't submit ...
1
vote
1answer
47 views

How to edit link properties as underline color in ExactTarget content editor?

Can't find how to change link underline color in content editor. It seems that ET content editor putting underline to all text links by default and you can't remove them at all + link color is ...
7
votes
1answer
59 views

Why doesn't CSS overflow work in Visualforce tab?

Does anyone know how to get the CSS overflow property to work on a Visualforce tab? The concept I'm going for is possible, as demonstrated on JSFiddle. However, I cannot seem to apply the same concept ...
1
vote
1answer
68 views

How can I copy the rule for a Dynamic Content box (created in ET content templates) into my HTML for an HTML paste email?

Should be pretty simple. I set up two different content boxes in ET with 2 different versions of a section of my email. I then created a Dynamic Content rule on when to use either one, using ET's ...
3
votes
3answers
245 views

Exact Target Data Extension and special characters - HTML markup

We have text fields and areas displayed within our Exact Target Landing Pages which had been inserted into a Data Extension text field using AMPscript enabled landing pages. We are using the "pre" tag ...
2
votes
1answer
103 views

Why don't all the labels for my custom form show in the html returned when using getContent()?

I am creating a url to prepopulate values on a custom form by parsing the labels from the html of the form. I am using the getContent() method of the page reference class to get the html of the form ...
0
votes
1answer
490 views

Spaces with Messaging.SingleEmailMessage setHTMLBody method

I'm using the Apex class Messaging.SingleEmailMessage.setHTMLBody() to send an email from Salesforce with prettier than ASCII formatting. For the life of me I can't figure out how to insert an extra ...
0
votes
1answer
252 views

How to save the Custom designed form as a PDF?

I have created a customer signup form using VF page and Html Tags. In Account object I have created one formula field to reach this form via Account object. If the user reach the form via account the ...
5
votes
2answers
457 views

Attempt to get html from visualforce page results in “BLOB is not a valid UTF-8 String”

I'm running into a problem on a specific customer's org when attempting to get the HTML from a custom object's standard 'new' page layout. String objPrefix = ...
1
vote
2answers
100 views

Adding html IE conditional statement in Site.com

There are only two options to specify the DOCTYPE of the page, HTML5 or XHTML 1.0, in site.com but no option to add HTML tag based IE Condition. for e.g, I want to add different html DOCTYPE based on ...
3
votes
1answer
173 views

Display numbers as currency?

I have these 3 fields that I'm calling in my visualforce component. They are all Currency(16, 2), but when I'm calling them in my component, they are being displayed as numbere 1111.00. is there a way ...
2
votes
2answers
117 views

color a row in html? [closed]

I want to set the background color of this row to #C0C0C0 how do i do that? When i do it on the attribute i get a line between the label and the data. when i add it to the nothing happens. i think ...
1
vote
0answers
447 views

Display field value- not label?

I can't get my VF working quite right. Here is the structure of the row of my table. the values were hard coded in the past, but now i want to change it to values of fields. The problem that I'm ...