Hypertext Markup Language

learn more… | top users | synonyms

0
votes
1answer
23 views

Remove the Extra Space between Labels

Here is my VF Code: <span style="padding:10px;"> <label>{!wrapper.used}</label> / <apex:outputLabel value="{!wrapper.total}"/> USED ...
0
votes
0answers
21 views

VF Page Table spacing, padding, formatting [closed]

In my VF Page, I have the below code to define a table: <table border="1" style="width:100%; padding:0px; border-spacing:0px" > <tr> <!-- ...
0
votes
1answer
14 views

font color not working for Apex renderas PDF page

I have below code where I need a rectangular box with text in white inside it. Box shows fine but text fails to read color #FFFFFF. Can someone please help? <div id="rectangle" ...
0
votes
2answers
35 views

Alternative to renderas PDF for converting an HTML to PDF in apex

Is there any alternative or work around to HTML to PDF convert in apex? Please help and provide your suggestions.
0
votes
1answer
36 views

HTML Page renderas PDF misplaces alignments

I have an apex page where I am using HTML tags mandatorily. Here , I need to convert it to PDF. Using renderAs PDF is misplacing the alignments and messed up in Apex page. Please find my Apex Page ...
0
votes
1answer
20 views

How to get current selected tab index after page reload, i am using Spry.Widget.TabbedPanels?

I have two tabs here, <ul class="TabbedPanelsTabGroup"> <li class="TabbedPanelsTab" id="tFirst">Basic Information</li> <li class="TabbedPanelsTab" ...
1
vote
1answer
28 views

Render HTML Content from rich text field to page

I store raw HTML code in a rich text field in the backend. I query it out in the controller and try to render it as HTML in a VF page. It displays the whole HTML code, it dosent render itself as HTML. ...
3
votes
2answers
24 views

How can I escape a double quotation mark in VisualForce context?

I am trying to process a string before displaying it in a visualforce page. What I need to do is remove any quotation marks in the text field before I use it to assemble a link path. The following ...
0
votes
0answers
24 views

Getting “PDF generation failed. Check the page markup is valid.” Error from tables?

I'm working on what should be a relatively simple PDF Quote page using visualforce. For some reason I have run into an issue where no matter what I try I keep getting an error that the PDF Generation ...
1
vote
1answer
15 views

Single apex message coming in red but not multiple apex messages [duplicate]

Couple of days back , I had a problem like i have a page message and I want the text to be in red color. after applying some css it worked out well.But if i am showing more than one error ,then only ...
1
vote
1answer
31 views

twilio smsToLead HTML element error

I'm trying to follow the blog for SmsToLead here and I'm getting an error I don't understand Error msg: Cvc-elt.1: Cannot find the declaration of element 'html'. This is my Visual Force code: ...
1
vote
1answer
20 views

Is it possible to line up PanelGrid with PageBlockTable or hard code a pageblocktable

So I have a data entry grid that is a pageBlockTable. I'd like to put instructions below the grid. What control can I use to make the grids line up? This is the data entry section ...
2
votes
1answer
24 views

“PDF generation failed. Check the page markup is valid.” caused by a single table?

I am generating a quote page to show information regarding the client and have run into an issue where the table I use for formatting the information's location is somehow causing the PDF to fail ...
0
votes
0answers
20 views

OutputPanel Rendered Attribute not working as expected

I've got a Quote Calculator in the works for my company and I'm trying to have it push the quote out as a PDF. Where I am running into the issue is with the PDF page. Both pages use the same output ...
3
votes
1answer
48 views

Spring16 Community Builder/Lightning: Javascript in <head> can't find ElementById on lightning component on page

With the introduction of Spring '16 (currently in Preview), the Community Builder for Template based communities like Napili was updated to allow access to the <head> of the page similarly to ...
1
vote
1answer
23 views

Error in jquery response error

I have the following piece of code var sContactId = jQuery("[id$=contactId]").attr("value"); jQuery("#responseErrors").html("Check"+sContactId); Now, it is not printing the value of sContactId. I ...
1
vote
0answers
20 views

Salesforce HTML Area Home page component not working

I have below component enabled for a particular profile Users to navigate to a VF page after the users logs in removing their Home Page. It works fine when I log in from System Admin profile and then ...
0
votes
1answer
35 views

ReRender Page using Anchor Tag

How can I make the whole tab, using an anchor tag in <li> tag, be clickable and to render resultant page? Code: <div id="tabs-container"> <ul class="tabs-menu"> <li ...
0
votes
1answer
38 views

pass html input checkbox to controller

i try to get the value from <input type="checkbox">and pass it to my variable on controller but i always get 'Argument cannot be null'. i already try using inputHidden to <select> tag and ...
-1
votes
1answer
29 views

How to prevent postback in VF page?

On click of a button, I want to prevent postback so that the page does not refresh. I tried with below but doesn't prevent from postback. Any help? <div> <button type="button" ...
2
votes
3answers
123 views

pass html multiselect picklist value to controller

i have problem with passing multiselect picklist value to controller, and i want to insert it to picklist(multiselect) field. what should i do to achieve this ? here's my visualforce ...
0
votes
1answer
25 views

Problem with a component display

I have a visualforce page, wich call a component like that : <div> //some code that is not related to the component (and working) </div> <div id="selectMode"> <c:MyComponent ...
2
votes
1answer
51 views

Pass parameter from html select tag to controller

I want to pass parameter that selected from html select tag to my controller (assign it to string "city") what should i do to achieve this ? --Visualforce-- <select> <option value="" ...
0
votes
1answer
39 views

Action support on html table

I have a simple html table. I want another table2 to be showed only when I mouse hover on that table1 row. How to use Action support. Please help below is my code, Can you please help me out with my ...
0
votes
1answer
36 views

Jquery Tooltips showing up at </apex:page>?

Currently working on finalizing a system and to spruce it up we wanted to add tool tips to the name field on a data table to display some information about the product. It works just fine, but there ...
-1
votes
1answer
24 views

Regex expression [closed]

Can someone let me know regex expression for below? I have an email template with below text. Template Body Dear {!Compliance_Incident_abv__c.RepEmail_abv__c}, What you need to know: New ABS ...
1
vote
1answer
57 views

How to open a html document in browser like a pdf instead of downloading from visual force page

From a visual force page on a button click i am opening documents using following javascript function <button type="button" class="wpsButtonText" onclick="javascript:download()">I ...
2
votes
3answers
163 views

Apex/Visualforce: multiline IF statement in HTML

Can I write a multiline if statement in Apex/Visualforce HTML? Something like (definitely pseudocode): <apex if (condition)> <strong>This HTML.</strong> <apex else> ...
0
votes
2answers
50 views

How do I track html email links inside conditional comment blocks for outlook

We use buttons for our call to action links in emails, which go to recipients mostly at financial firms, which means they mostly use Outlook. Because of this, my button code includes conditional ...
-2
votes
1answer
27 views

vf page color setting

I have below page code where I need to color the whole page with color code #FFFECC. Can someone please help? Page: <apex:page Controller="test_k" showHeader="false" sidebar="false" > ...
3
votes
1answer
43 views

hide a table when rendering a PDF

I hope someone can help me. This my code basically I am creating a quote PDF. In this case when there is no training products the table should be rendered in the PDF. And I am able to hide every ...
1
vote
0answers
42 views

Use image instead of radio button

How can i use this code in Visualforce page with apex:selectRadio <label for="happy"> <img style="cursor:pointer;" id="image1" height="50" width="50" src="{!URLFOR($Resource.smileys, ...
1
vote
1answer
67 views

rich text field and visualforce table

I am quite new in visualforce. I am generating a PDF from a visualforce page but the issue is that when I try to insert a rich text field(called Quote.Hardware_configuration__c) in a table and then I ...
1
vote
1answer
33 views

Error: Invalid field user for SObject User

I am trying to create a visualforce template for new users so we can generate a welcome to the team email and outline key information. I am having some trouble trying to save this as I kept getting ...
0
votes
1answer
69 views

Google Static Map API specifically for HTML Email?

Has anybody ever tried using Google Static Map API or something similar to generate dynamic map images to be used within HTML emails? There's over 2k store locations and I'm wanting to avoid ...
3
votes
1answer
85 views

How to use custom html pass through attributes in Lightning Components?

In Visualforce you can use custom html attributes like this https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_html_features_pass_through_attributes.htm <apex:outputText ...
1
vote
0answers
39 views

Does SalesForce store HTML version of email sent using 'Send an Email' button in activity history?

Whenever I send email using 'Send an Email' button in activity history section, SF allows me to format it like HTML email and user receives HTML formatted email as well. However, when I later want to ...
1
vote
1answer
18 views

VisualForce Global Template

I'm relatively new to Salesforce, and I've been tasked with cleaning upon some of our VisualForce pages as they are in a bit of a mess. At the top of every page we are constantly including various ...
0
votes
1answer
77 views

Change <apex:param> value with javascript

I have the following: <apex:column headerValue="Contact" headerClass="ct" > <apex:inputField value="{!c.Contactid}" id="inputField"/> <apex:inputHidden id="hdnField" ...
1
vote
0answers
21 views

Email Template HtmlValue not Returned

I have been attempting to enter an Email Template for a couple of days now. Each time I create a Visualforce email template and fill out the required fields. I then enter the body of my email and ...
0
votes
2answers
19 views

Email body issue

I have tried to form the email body of a singleemail message as below but it is giving Line break errors. Can someone help me here? String body = 'Dear ' + OneMap.get(mycontact.ID).Rep_abv__r.Name + ...
0
votes
2answers
86 views

Border css not working in my visualforce

i have an issue, my visualforce css not working. when i use renderAs="PDF". somehow my border css does not working but another css working properly. i already try all answer on this forum but still ...
0
votes
0answers
23 views

How do a show an image on a HTML Email that will be sent to the customer

How do I add the src after I load the image I want displayed in the HTML Email I am creating? I found the help that says upload the image to the document folder. It shows the example <img src ...
1
vote
1answer
34 views

Need help in updating a VF email template

I have an email template which has values of two merge fields of type "Rich Text Area(32000)". Below is the requirement: 1) In my email template I want to restrict this value to only 200 characters. ...
2
votes
2answers
51 views

Help with apex pages and css

I have an apex class with the following content public class RemoteGoogleController { transient public string googleHome { get; set; } transient public string googleHome1{ get; set; } ...
0
votes
1answer
123 views

Read Html file and display the content on a page

I have uploaded html file in static resource as type text/html. While i am referencing that html file in the VF page images are not displaying on the page but html is having the image attribute. ...
1
vote
2answers
472 views

Error: Element type “div” must be followed by either attribute specifications, “>” or “/>”

Error: Element type "div" must be followed by either attribute specifications, ">" or "/>". <apex:page standardController="ADSS_Platform_Account__c" showHeader="false" ...
1
vote
1answer
46 views

Singleemail class Font Size change to 11

I have below statement to trigger mails from apex class. But here though I put size as 11, It sends mail with size 8.5. Can someone let me know , how to achieve desired output? code: ...
1
vote
1answer
93 views

SelectRadio in HTML Table forces linebreak

So I have a table, and I'm looking to have and inline SelectRadio. The Issue is that it is being pushed to the next line. I've tried a few things, but haven't been able to figure it out. Any ...
0
votes
2answers
293 views

Multiple tables not vertically aligned inside a PanelGrid

So I have three tables, side-by-side, in a panel grid (columns=3). The first two are aligned perfectly. The third is horizontally aligned... but vertically, it's at the bottom. See pic. ...