Hypertext Markup Language

learn more… | top users | synonyms

5
votes
2answers
24 views

How to add an attribute name in HTML within Visualforce?

I have the following html that I"m trying to input into visualforce. The challenge is that I have attributes within the tags and I get the below error. I'm having trouble getting this in the correct ...
2
votes
2answers
25 views

Html validation in VF

I have a VF page built mostly out of html tags, and associated Jquery that has been uploaded to static resources and included in the VF page using <apex:include script> I want to change the ...
2
votes
0answers
13 views

Keyboard unresponsive after textarea / input touch

I have a textarea within a VF page, as part of an app I'm working on for Salesforce1. When I touch the textarea on an iOS device, it freezes. The keyboard stays up, the cursor flashes inside the ...
3
votes
1answer
24 views

Html Input to apex:inputfield

currently in my visualforce page I have an html input: <input class="tb1" data-val="true" data-val-length="First Name should be less than 50 characters." data-val-length-max="50" ...
0
votes
0answers
30 views

Dynamic table on VF page

I have a requirement in which I have to display records of object as Table. In which column header values will be dynamically taken from Records fields values which need to populate in respective ...
0
votes
0answers
22 views

Merge fields not populating Email Template (HTML)

Some of my merge fields are not populating. When I do a test and verify merge fields, Some of my merge fields from the Lead object fills, others are completely ignored. What could possibly be causing ...
2
votes
1answer
25 views

Format Visualforce Column to prevent word wrap

I have a visualforce page where i need to display 4 columns. Each column has a label along with outputfield. In one of the column, (second column in the attached pic), the labels are too long and ...
2
votes
1answer
149 views

Why does SalesForce add an invisible image to my outbound HTML emails?

I noticed that SalesForce adds this to the very bottom of my outbound HTML emails: <br><img ...
0
votes
1answer
31 views

Use ASCII code to insert a line break in a Tooltip

I need to add a line break in a tooltip. I tried using ASCII character "&#13;" to insert a new line feed. This works like a charm in normal HTML page. It even works just fine when you add it ...
0
votes
0answers
57 views

Passing an input text value from one HTML page to other page using URL submission

I am using a simple web to case form > <!-- > ---------------------------------------------------------------------- --> <!-- NOTE: Please add the following <META> element to ...
0
votes
0answers
17 views

How to restrict the data according to the dimension of a table in VF page rendered as PDF

Please consider the following scenario and help me with a probable solution: I am rendering a VF page into a pdf. At a pre-defined location on the page, there is a (using apex:repeat) with specific ...
0
votes
0answers
41 views

How to Achieve this Requirement ???Can i use Jave Script , CSS and Visual force page?

Can any one help me out , based on quote line items can we create a layout like by prepopulating items, price & qty and next 6 qtrs. Example below 2 part numbers are in quote line items, also ...
1
vote
1answer
59 views

Passing dynamic number of HTML elements to Apex class

I have a non-stable number of HTML elements "they are generated at runtime" that I want to pass to APEX controller and do some processing on them. Here is an example of HTML elements One more ...
3
votes
1answer
36 views

Visualforce with jQuery and HTML Files Separately

Have a question if it is possible to have a visualforce page that is referencing both an .htm document and a jquery (.js) file that are loaded as static resources. The logic behind it is to keep the ...
0
votes
0answers
28 views

Library to convert SF Fields into HTML input fields

Does anyone know of a library that converts SF fields into HTML elements? I want to build an HTML form for Contacts but I'd like to do it more dynamically. I'm iterating over all of the fields ...
0
votes
0answers
74 views

pop up window abruptly closes when enter key is pressed on a text or date field

What do I have? I have a VF page that serves as a pop up window. This page opens up using window.open on the onClick attribute of a VF button. Purpose of this VF page Data entry of a lot of details ...
3
votes
1answer
145 views

Fonts supported by salesforce HTML editor

Which fonts are supported by HTML editor in salesforce and how can one add a new font?
1
vote
1answer
63 views

Adding bold style to outputText seems not to work

I'm using a custom table that replicates the design of a pageblockTable. Using th will output the text in a bold style. Code Snippet: <table id="pageblockTable"> <thead> <tr> ...
1
vote
1answer
123 views

BestPractice: Displaying Months on Visualforce Page

Is this a good practice in displaying months? Code Snippet: <b>{!CASE( IF( (MONTH(TODAY()) +3) > 12, (MONTH(TODAY()) +3) - 12, MONTH(TODAY()) +3), ...
2
votes
1answer
83 views

How to show a selectlist in a visualforcepage populated with picklist values on a custom object using only javascript?

I am trying to show a selectlist in a visualforcepage populated with picklist values (from field say pickField__c) on a custom object (say object__c) using only javascript. I know how to achieve this ...
2
votes
1answer
114 views

UI for custom merge

I'm working on a custom object merge feature and am having difficulty replicating the standard SF merge UI. I'm hoping to use <apex:selectRadio> to display field values on a row, with the ...
1
vote
0answers
52 views

Is there any way to write code or use <iframe> tag to display service related content in .JPEG / .PNG images

When the end user is viewing downloaded images from web, at that point, the client wants to display his service related information in bottom of the image (if internet connection is available). Is it ...
1
vote
1answer
30 views

Mix static text fields with outputFields (visually)

In my VF page I need to display lines containing data, some fetched from the object and some written statically like so: <apex:outputField label="Raised by" value="{!$User.activeUser}"/> ...
0
votes
2answers
143 views

Attribute name “checked” associated with an element type “input” must be followed by the ' = ' character

I want to have a radio button to be selected as default in VF page. <input type="radio" name="protocol" value="http" checked/>http <input type="radio" name="protocol" value="https"/>https ...
0
votes
0answers
13 views

Text box size issue for IE [duplicate]

IE Issue With Input Box Size. I created HTML and same HTML working fine. When I put same HTML in VF component it's working fine for Firefox & Chrome but for IE, text feedback box size shrinking ...
1
vote
1answer
112 views

How to Add HTML / Javascript / Jquery “Slide Out” Tab (Globally)

I have a form that displays when a user selects a tab This form slides out when selected, and hides itself when selected again The action to display / hide is javascript / jquery I'd like this form ...
0
votes
1answer
60 views

Rendering <img> tag in table

I am attempting to render noImageURL when icon.image is null. For some reason, noImageURL is always rendered. It's not respecting the javascript if statement <td> <apex:image ...
1
vote
2answers
449 views

Adding Image to Email Template (Custom With Letterhead)

I am trying to add images to a custom HTML email template using a letterhead. My letterhead images (header and footer) works just fine. However, when I add an tag in the body of the template, it ...
0
votes
1answer
195 views

How to create HTML kind pop up message box

When click on Submit Feedback .It should be open HTML kind pop up message box. Where I can add my comments. ............ <apex:page standardController="Feedback__c" ...
2
votes
0answers
213 views

Output of VisualForce Component inside VisualForce Email Template Gets HTML Encoded

I have a Visual Force component inside a Visual Force Email Template with the intention of producing an HTML email in which the component is reponsible for rendering some of the HTML. What seems to be ...
1
vote
1answer
57 views

Rendering text or image in Custom Email Template (HTML Version)

I have a custom email template (html and text versions). I want to render certain parts of the template based on a multi select picklist value. I have to render the below 'td' when ...
2
votes
1answer
423 views

Escape = False On OutputText Not Rendering HTML In RichText

I am trying to render some HTML stored within a custom sObject's a richText field. I am using an outputText field as follows: <apex:outputText value="{!Information.Content__c}" ...
1
vote
1answer
43 views

Trying to use a SOQL result as an HTML div id in visualforce page

Answer: I figured it out (or at least worked around it). I used document.getElementById(researcher).show; instead of $$(researcher).each(function(element) element.show(); and it works perfectly now. ...
2
votes
1answer
51 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
2answers
181 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
54 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; ...
5
votes
1answer
269 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
118 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
372 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
33 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
93 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
125 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
127 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
436 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
172 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
803 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
75 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
261 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
189 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
137 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 ...