Questions tagged [html5]

HTML5 is the latest standard for HTML. It was specially designed to deliver rich content without the need for additional plugins. The current version delivers everything from animation to graphics, music to movies, and can also be used to build complicated web applications.

Filter by
Sorted by
Tagged with
2
votes
0answers
186 views

navigator getUserMedia in visualforce page for salesforce1

I want to access mediaDevices from a visualforcepage. From within chrome browser the page is working, but when I open it from salesforce1 it somehow gets stuck on the following Promise: navigator....
0
votes
2answers
4k views

How to disable the increment and decrement buttons for lightning:inputField that renders a number?

I have a lightning:inputField within a lightning:recordEditForm. How can I disable the increment and decrement buttons for ALL fields that render a number? I tried setting the class conditionally to ...
2
votes
1answer
567 views

UI is not rendered properly. Problem with SLDS

I was trying to create a visual force page but I bumped into an error. SLDS style sheets which I Included in my code is not being rendered. As a result, the entire page looks ugly without CSS. <...
3
votes
1answer
9k views

draggable="true" is not working in firefox for Lightning Component

draggable="true" is not working in firefox. The following code working fine in chrome,but not in firefox. DragDropDemo.app <aura:application > <aura:attribute name="values" ...
-1
votes
1answer
2k views

Font color for outputField in <td> tag

Using outputField in a html table tag. Can't seem to get the font color to show. Not the planned use of color but need to get this much working. <table class="htmlDataTable" > <td ...
0
votes
1answer
781 views

Allow backspace in contenteditable in Service Console

I cannot press backspace in a <div contenteditable="true" /> in Service console. I would like to. The reason, as far as I can tell, is that in ServiceDeskViewCTI.js, there's the following line ...
2
votes
1answer
1k views

How to pass data to lightning controllers with change events?

I need more information about the context after triggering a change event. I decided to use data- attributes (that can only be applied to regular html tags). Since I'm using <ui:inputNumber, I can'...
1
vote
0answers
410 views

animate a canvas component

I need to highlight a child canvas component inside the parent canvas component. The parent canvas is a circle and the child canvas components are small circles inside it. I need to highlight these ...
2
votes
0answers
413 views

ui:inputCheckbox disabled property not working in Microsoft edge

I am dynamically rendering disabled property of checkbox to true or false from controller. This works fine for other browsers but does not for Microsoft Edge. The checkbox remains disabled, i.e it is ...
0
votes
0answers
1k views

How to apply external styling to ui:outputText

I want to apply external style for truncating the text displayed by ui:outputText. Markup: <lightning:layout multipleRows="false"> <lightning:layoutItem class="slds-p-around--medium"&...
0
votes
1answer
400 views

dividing the records using div tags

kindly let me know how to divide the below records using apex:repeat in 2 columns using div tags Visualforce:- <apex:repeat value="{!sa.Country_Languages__r}" var="cLang"> <apex:...
0
votes
1answer
1k views

Remove/skip a blank line in HTML email template

We have an HTML email template, wherein a if statement outputs a blank by comparing for two values and a field value for rest. Please see below If statement: {!IF(OR(Case.Team__c='Bronze',Case....
1
vote
1answer
322 views

html entity to lightning component

Can I add html HTML Entity to lightning component for example: HTML5 Named Entity:&star; or Decimal: &#9734; or Hexadecimal: &#x02606; For example: <ui:outputText value='&star;'/...
0
votes
1answer
590 views

HTML Personal Signature has too many characters. Workaround the 1,333 character limit?

I tried creating a personal html email signature for a client of ours but the max number of characters it can have is 1,333 but the one I created has much more than that. Does anybody know how I can ...
0
votes
2answers
333 views

Using Global variables inside of Custom Metadata with Visualforce page Modal

What are design options for the following requirements? End user specifies the text of a Modal window to be something like: Hello [User Full Name], Because you chose [Case.FieldA] goto this <a ...
0
votes
1answer
244 views

Is it possible to specify doctype in Visualforce components ?

Is is possible to specify DOCTYPE in Salesforce visual force components? How can DOCTYPE affect the responsiveness of the component (If we have given some styling/responsiveness to the UI) Any ...
9
votes
1answer
3k views

The purpose of ARIA attributes in Lightning components

In samples of Lightning design system I have seen a lot of aria-* attributes, for example: <ul role="tree" aria-labelledby="treeheading" ...> <button aria-controls="accordion-details-01" ...
0
votes
1answer
225 views

Is it possible to create a tag in visualforce using apex?

I want know if is possible to create a tag html in visualforce using APEX. for example: <table> <!--TR and TD will be generated by APEX--> </table>
0
votes
0answers
488 views

How to stop the <apex:form> onSubmit event from triggering when html5 validation kicks in?

I have this simple form <apex:form onSubmit="alert('submit!');"> <apex:inputText id="a" value="{!a}" required="true"/> <apex:commandButton action="{!signup}" value="b"/> </...
0
votes
1answer
290 views

Help with Visualforce Email Template

When we create an opportunity we create a certain number of quotes (custom, child record). I would like to be able to send an email to include information from all the quotes created under the ...
2
votes
1answer
373 views

Locker Service With Inner html tag issue

I have below code where i am trying to display data in a table format based the html element stored in a field. <table class="slds-table slds-table--bordered slds-table--cell-buffer"> <...
3
votes
1answer
4k views

Sorting List in descending order

I have created a th/td HTML table where Wrapper class List is already sorted with Comparable interface. Requirement - User should be able to sort it in descending order based on the same field as ...
0
votes
2answers
1k views

How to Hide/Show HTML Button based on Users Profile

I want to display HTML button to System admin and Super User. I have written the below code: <apex:outputPanel rendered="{!isEditAllowed}" layout="none"> <button type="button" onclick="...
-1
votes
2answers
412 views

Hi, I am trying Execute the following code in Visualforce page to get the current Location, But output is not coming. Please check & provide solution

Link of the code: http://www.aspsnippets.com/Articles/Get-Current-Location-Latitude-and-Longitude-using-JavaScript-and-HTML5.aspx Code: <apex:page> <script type="text/javascript" src="http://...
5
votes
0answers
350 views

Hitting error when trying to save HTML5 canvas in VisualForce Page

We have a requirement to open an image attachment in a VisualForce page, the user should be able to draw on the image and those edits should be updated in the attachment on save. So to achieve this, ...
0
votes
1answer
438 views

html5 validation on apex:inputsecret

html5 validation fires on all fields except apex:inputsecret field.Any reason behind this ? <apex:page id="Registration" showHeader="false" controller="SiteRegisterController" title="{!$Label....
1
vote
1answer
1k views

Passing a string with line breaks from Apex to a jquery datatable cell

So I'm passing the following string structure to populate a jquery datatable cell: rows[i-1].put('Message', rows[i-1].get('Message') + ' *** ' + noteInner.get('Message')); Add this gets ...
0
votes
2answers
896 views

Show output field value in VF NEW record page without reload

I am trying to display an output field value in VF page before saving the record. If user select checkIn & checkOut date (both are date field), display the "Length of stay". Length of Stay is a ...
1
vote
1answer
2k views

Local Web Storage for Apex

Hi I have written a plain HTML with javascript that gets an object from Local Storage and works just fine, when I moved the code to Visualforce page, I get NULL back console.log("inside Retrieve ...
1
vote
2answers
3k views

Visualforce Page: Error for Input Type Number: Unable to validate type 'number': data type not provided

I tried using <apex:input type="number" /> in VisualForce page, however, it gives an error of: Unable to validate type 'number': data type not provided I've already put docType="html-5.0" in ...
0
votes
1answer
1k views

Water ripple effect on background

I got this damn good thing from internet and need to implement exact thing in my development. Can someone please let me know how to do that? I am extremely new to javascript part and I will implement ...
0
votes
1answer
356 views

how to sort by Date related display the Records in visual force Page

I display 20 Records in Visualforce Page, and Created SortBy: Date Button. Once Click the Date Button it should display selected Existing Records and Previous Records, in visualforce page using in ...
3
votes
2answers
1k views

Formatting an outputText value field in HTML (VF Page)

I have a VF Page with apex tags and have to transform it in HTML to adapt for Salesforce1. With apex I was able to format a text field as number and get only 2 decimals: <apex:pageBlockTable ...
1
vote
1answer
1k views

how to compress the image size in visualforce page [duplicate]

I can upload 1 MB images in visual force, it will be store in Document Object. Other wise if i Upload more then 1 MB images in Visual force page It will be Display Error Message
1
vote
1answer
721 views

Can apex:inputFile have the html5 validation function?

My web page is a form using html5 validation to check blank. All field in my form can use html5 to perform validation, except the inputFile field for uploading attachment. Can apex:inputFile have the ...
2
votes
0answers
745 views

How to select picklist value based on an apex:inputField

In my LiveAgent prechat form I have a picklist for Department that has a Chat Button ID assigned to each value with a fallback button. <td> <span class="chatFormLabel">Department:</...
3
votes
2answers
3k views

<apex:SelectList > required =true attribute is not rendered in the underlying HTML

I have a <apex:selectList> (multiselect) tag and I have set required attribute to true. I then set docType="html-5.0"at page level so that I can take advantage of html5 validations. ...
4
votes
2answers
3k views

document.getElementById().value not working for <textarea> in lightning component

I have a lightning component which acts as a text area field. The mark up is as given below. <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"> <aura:...
1
vote
2answers
528 views

How to build an HTML grid from the controller values using HTML controls in Visualforce

So I am using the SLDS and it uses all HTML5 syntax. I'm curious how to build a table/grid using a controller. I am trying using a static reference inside the control. I figured I'd create a ...
1
vote
1answer
959 views

Bind Data to Lightning Design System in a Visualforce Page

How can I bind data to controls built in the lightning design system within visualforce. It seems that it's more HTML/CSS based vs apex:control based. Changing my question to refine and make more ...
1
vote
1answer
171 views

How to assign variables from <apex:repeat> during an ondragstart event

I want to allow users to drag and drop items in a table to easily reorganize. I am running into two problems. The first is that, when I add an ondragstart value to my tag, I get a slightly delayed ...
4
votes
2answers
5k views

Can we create HTML markup dynamically from helper/controller in a lightning component?

Lightning gives us the scope of creating aura components dynamically from the controller/helper using $A.createComponent/createComponents. However, I was wondering if there is a way to create HTML ...
1
vote
1answer
2k views

Lightning component access to scrollTop

I would like like to get the scroll position of a tbody in a lightning component, what's the supported way to do this? cmp.find('myComponent').getElement().scrollTop is undefined. If I do this in ...
0
votes
1answer
1k views

Edit Image Before Upload [closed]

I have a requirement like after choosing the file there should be a section below that for edit purpose so that i can crop the image and a button should be there to replace the original file with the ...
0
votes
3answers
4k views

Pass selected value from html <select> to controller

I have to pass the selected picklist value by user from apex form using <select> and <options> html tag to a standard controllers picklist field. I am unable to get the values from Page ...
2
votes
2answers
1k views

How to specify a background image for PageBlockTable

Plase see the below code i want to put image in backgroung in table. <apex:page standardController="Contact" recordSetVar="Con" showHeader="true" sidebar="true" renderAs=""> <apex:...
1
vote
0answers
412 views

How to make html datalist compatible on IOS which is present on my visualforce page?

<apex:inputText list="{!listOfStringElements}" id="userInput" onChange="alert(this.value);"></apex:inputText> In the above code the list attribute generates a dynamic datalist but the ...
4
votes
1answer
49 views

Can't save pasted email code

I've been trying to paste some email code into the edit section, and I cannot save. I am not getting any error code really, just a message that says "An unexpected error has occurred". I called sales ...
3
votes
2answers
2k views

Datetime format conversion in apex

I have an input field in my visualforce page which uses the html 5 input element as type="datetime-local". The value that I capture from the field is of the format 2016-04-09T23:58 . I want to use and ...
1
vote
0answers
213 views

View a PDF and TXT file from within an HTML static resource

So i have created a website in pure HTML 5, with some css's, jquery's and modals and locally on my PC it's all working great. I have some PDF and TXT files that i want to be able to view and it's ...