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
1 vote
2 answers
79 views

Conditional Criteria on Lightning button disabled attribute doesn't work

Can someone help me how to make this work please. Wanted to disable the button based on the following criteria //Diabled criteria - MUST be disbaled for all rows except for last row. //Background - we ...
  • 37
0 votes
1 answer
91 views

How to add CSS in HTML if I have 2 Titles on LWC

I created 1 LWC, in which I have main Title & I wanted to add another Title in the same HTML page. <template> <lightning-card variant="Narrow" icon-name="standard:...
  • 5
0 votes
0 answers
37 views

Enter Decimal Value in an apex:input

I have a form in a Visualforce Page which inputs some data. I need to have a decimal input in the form I am using the following : <th style="word-wrap:break-word; overflow: hidden; text-...
  • 1,175
0 votes
0 answers
219 views

Long Text in Li is displayed in the second line behind the bullet point

I have tried using text-indent, still no use. Please help me on the below code and let me know where am doing wrong **css*** .checkList li:before, .check { padding-left: 10px; color: rgba(...
1 vote
0 answers
664 views

lightning-formatted-url with Target="_self" is opening in a new window in chrome from Salesforce console app

I'm using a lightning-formatted-url with targer="_self" inside record-edit-form which has a link to a case. upon clicking, the link is opening in a separate tab or in new window(for some ...
  • 39
0 votes
2 answers
56 views

Attempting to use SLDS Examples: are they using JS on the back end?

Attempting to get this example to work on my own visualforce page. The example is pulled from this link: https://www.lightningdesignsystem.com/components/lookups/. Is Salesforce using a JavaScript ...
  • 1,380
1 vote
1 answer
759 views

Can we use Swipe / Touch events in LWC mobile

A very happy new year to all of u . I am trying to built a swipe/ touch feature using lwc for mobile version like below I have reached till this point where i am able to swipe it, but after ...
0 votes
1 answer
766 views

How can I select More than one option from different radio group buttons in LWC?

I want to select options from Radio buttons from different groups of buttons. I am only able to select only one option from all Radio button groups in the component. in the above example, I want to ...
  • 39
1 vote
1 answer
1k views

:last-child selector not working

my requirement: I want to hide last <hr> in the template under for loop. HTML: <div class="article"> <template if:true={List} for:each={List} for:item="k" > ...
  • 39
0 votes
1 answer
1k views

Modal always opening on top of the page in mobile view - LWC

i am using standard html table on click of i am opening a modal . When user is at bottom of the table or somewhere middle, when clicked the modal is opening at top of the page and user has to again ...
0 votes
2 answers
3k views

HTML5 video tag doesn't work on iPhone/Safari (SFCC)

I'm struggling with this: HTML5 video tag is not working on iPhone (Safari). This is my code: <video class="video" controls="" loop="" muted="" playsinline=&...
1 vote
0 answers
51 views

<apex:input> data type error

I just tried to introduce a new date field on an old Visualforce page like this: <apex:input value="{!fromDate}" type="date" label="From:"/> In the controller the ...
  • 2,182
0 votes
1 answer
627 views

How to access a wrapper class properties from html

I have the following apex class where I am returning a wrapper class back the lightning web component and access the values of that wrapper object from javascript and html to carry out some processing....
0 votes
1 answer
263 views

How to get the popup long text Aligned even in Zoom in and Zoom out? - LWC Component

This Image is when I clicked on Button and it showed popup with any zooming. This image is when I zooming under 100%. Could you please suggest how to show the popup with text without split. I am ...
0 votes
1 answer
1k views

email validation in input field

i have a login box. While entering email then the box outline should be red and once a valid email address is entered then the box outline should automatically change to green. How to achive this in ...
  • 327
0 votes
1 answer
2k views

LWC - render HTML inside an HTML tag

How do we render HTML inside a div tag? Here is my lightning-layout-item: <lightning-layout-item class="slds-p-around_xxx-small" size="12"> <div>{o.orderEntrySteps}&...
  • 591
0 votes
1 answer
250 views

line break in email message reply button body salesforce visualforce email template

I want to display the details line by line, in an email message reply link body. When a user clicks on the link in the email message, it is automatically populating with Subject, Body values. In that ...
0 votes
1 answer
1k views

Align the width of a component to its parent component

I am dynamically creating lightning buttons using the lightning:buttongroup component. I want to have the contents inside it wrap within the width and the height setting of the component. Component: &...
  • 591
2 votes
1 answer
2k views

How to get Id of the created record when using .submit function

How do i get the record ID of the newly created record when i use this.template.querySelector('lightning-record-edit-form').submit() and store it in a variable?
  • 362
0 votes
1 answer
706 views

Global Action Error Message - Error: No Lightning Component Quick Actions are available for your organization

In a dev org, I am trying to create a Global Action to call a Flow via a LWC, but I am receiving the following error messages: Here is the code for the component: <aura:component implements="...
0 votes
1 answer
2k views

Lightning Web Component That Allows Text Input and Dropdown

Is there a LWC that allows me to utilize it as a text input field and also a dropdown menu? I need to display results as a dropdown but also allows user text input to search.
  • 23
0 votes
1 answer
319 views

Is it possible to customize the look and feel of the Forward to a Friend Default Page [closed]

Is it possible to customize the look and feel of the Forward to a Friend Default MC Page? Thanks!
0 votes
1 answer
2k views

Is comparing two values possible in Html file of LWC?

I need to compare a list of pricebook IDs in a pricebookentries of a product with a list of PricebookIDs. Is it possible in HTML template? I'm attaching a image to get an idea of the table. Here PB1, ...
  • 73
0 votes
1 answer
160 views

How to make a CSS file used in LWC cross browser compatible?

I have a CSS file with different style classes incorporated in it and this CSS file is being used in LWC. Now what I found it's coming up fine in Chrome but not in Mozilla or Safari browser. How to ...
  • 1
1 vote
1 answer
3k views

How to prevent <lightning-input-field> from changing the column width of Custom Datatable in LWC

I have developed an LWC which uses custom datatable. In that datatable, If I use <lightning-record-edit-form> and <lightning-input-field>, the column widths change. Please see the ...
  • 1,104
0 votes
1 answer
909 views

Apex includeScript outputting scripts after </html> tag

I am using the loadOnReady="true" attribute of <apex:includeScript /> to defer loading of scripts till DOM rendering is complete. Here's my VF page skeleton: <apex:page doctype=&...
-1 votes
1 answer
364 views

How to put the text in next line without having space in between

I am working on the req in which i need to put the text in the next line without any space between them i am trying to use the tag but it is creating unwanted extra space between the line can i get ...
  • 1
0 votes
1 answer
380 views

How to make a force.com site mobile responsive in Chrome?

I have developed a Visualforce page and I have put it in a force.com site. I have added the <apex:slds /> to my code to make it mobile responsive but it is mobile responsive only in the VF page ...
0 votes
1 answer
8k views

LWC- template for loop - having each loop values appear on a different column

I am having trouble aligning every single iteration of the values of the for loop appear on columns side by side. This is the output I have now. In the below picture I want to have Alberta and its ...
  • 591
0 votes
1 answer
864 views

Italicize subset of text in label of radioGroup

I am trying to hightlight part of the text in a radioGroup label. I can do this in a checkbox component using CSS. <aura:attribute name="registrationOptions" type="List" default="[ {'label':...
0 votes
1 answer
983 views

Italize subset of text in label of a checkbox lightning component

I want to italicize part of the text in a checkbox label. I am not finding a way to do this. For example, I want the checkbox label to say Biologics technical workshop. Only the word Biologics ...
0 votes
1 answer
60 views

render the html-placeholder based on country

How can i render the html-placeholder based on country? In the screen shot below, if the country is Canada, i want to display the html-placeholder as 'Enter Postal Code' Currently this is the code I ...
1 vote
1 answer
1k views

Marketing Cloud Responsive Layouts Not Responsive

Does anyone here ever encountered that the Empty Layouts of Marketing Cloud are not rendering good in some mobile devices (more on iOS Outlook). What solution or workaround did you do to fix this ...
1 vote
2 answers
2k views

How to debug HTML file in Lightning Web Components?

I am new to Lightning Web Components. I created a LWC that will search for accounts and display the account name. Initially, I was not able to display data in html file because I was using {acc.name} ...
  • 1,104
1 vote
0 answers
1k views

HTML5 canvas gradients in LWC are all black

I'm trying to create a HTML5 canvas with a simple gradient in LWC. However, it's all black. The code I'm trying is almost completely copied from W3C (except it's adjusted for LWC). HTML <template&...
1 vote
1 answer
238 views

I want Rich Text Editor and HTML place holder for the some of the description fields in Visualforce page using slds

Find my code below: I am able to display rich text editor but not html placeholder. <div class="slds-form-element__row ma-ltss-font_style slds-p- ...
  • 21
0 votes
0 answers
38 views

Salesforce Object which holds "HTML & CSS" records?

I am quite new to Lightning Development and appreciate any help. I have a custom object called "template" and the requirement is the following: There are n template records let's say "standard" and "...
  • 21
1 vote
1 answer
10k views

How to concatenate a value inside of the href property on lwc [duplicate]

I have the following code and I need to insert a '/' in my href property. <template for:each={assetData} for:item="item" for:index="indexvar"> <tr class="slds-hint-parent" key={item.Id}&...
0 votes
0 answers
132 views

Users are sometime unable to select a file using <input> in a lightning component

I got a lightning component that uses to allow users to load files on Salesforce. It has always worked fine (for months) until about a month ago (end of April, first reports). Files are in .doc or ....
1 vote
1 answer
142 views

How can the layout of a pageBlockSection be fixed in place so they don't move around when completed?

I have a pageBlockSection that moves/jumps up the screen when a value has been entered. How can I fix this and its contained inputField in place? If I use the following, when the field is changed the ...
2 votes
1 answer
459 views

HTML List structure in a PDF rendered Visualforce page

I have a visualforce page which has a nested list structure. Sample code below. Visualforce page <apex:page controller="RoleStructure" showHeader="false" > <html> <apex:form &...
  • 748
2 votes
2 answers
6k views

HTML <select> required Attribute not working in Visualforce?

I'm trying to implement a form with a required drop-down list on a VF page, as described in this example. If you click on the link above and run the sample, it works fine but when I try to implement ...
  • 1,517
0 votes
2 answers
2k views

How to display Date (Format 'DD/MM/YYYY') in a single input type textbox in cloudpage

I'm trying to display a Date in a single input type textbox in Cloudpage, the data will be coming from Data Extension. I tried changing the type to date : <input type="date" name="...
0 votes
1 answer
729 views

Star Rating not rendering on custom HTML email in Marketing Cloud [closed]

We have created an email in Marketing cloud using an existing Blank template where we can drop our custom made content blocks. And for one email we have a requirement where we need to capture the ...
3 votes
2 answers
4k views

Assign content to multiple slots in LWC: how to insert the same slot content to multiple template slots in LWC?

I want to build a custom configurable interface to pass two buttons to header and footer of a standard card element. So, I have a component card with card template <template> <lightning-...
  • 14.8k
1 vote
1 answer
697 views

Document.fullScreen API implementation in Lightning Web Components(LWC)

I was trying to achieve full screen on an element in Lightning Web Components but was unable to use Document.fullscreen API. I tried var elem = this.template.querySelector('svg'); if (elem....
1 vote
1 answer
1k views

Capture Survey Response from an Email and store answers into a Data Extension

Is there a way that we can create a survey in the Email and capture the customer responses in the Data Extension? I'm looking for a solution for it, and found out that Surveys are no longer ...
4 votes
1 answer
789 views

HTML5 DocType not getting set

Any idea why this is not generating an html5 doctype in my pages? <apex:page applyBodyTag="false" applyHtmlTag="false" showHeader="false" cache="false" contentType="text/html" sidebar="false" ...
  • 43
4 votes
2 answers
1k views

Html5 data list not displaying in lightning component

As Lightining components supports majority of html5 tags I have used the below code in lightning component code but it doesn't get shown in UI properly, The picklist options from data list is not ...
6 votes
2 answers
207 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 ...
  • 147k