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
0 votes
1 answer
27 views

LWC Template tag not working for conditions

<template if: true= {isFlagValue}> showing some content on page when isFlagValue true but after getting false value for isFlagValue I am able to see content Heading
sneha's user avatar
  • 7
0 votes
1 answer
69 views

dynamic button link on mobile and desktop

I need to add some code so when I send an email on desktop to have a different link www.desktop.com under a button and to have a different link on mobile www.mobile.com . I've tried to use media ...
Duicug's user avatar
  • 457
-1 votes
1 answer
674 views

Display html contained in js variable in LWC

I have a variable in my js file, let's say myCode = "<h1>HELLO</h1>"; myCode displays as <h1>HELLO</h1> in HTML. . . I want it to render the h1 tag and just display ...
mackmama's user avatar
  • 669
1 vote
2 answers
1k 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 ...
SMorse's user avatar
  • 47
0 votes
1 answer
245 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:...
apz's user avatar
  • 5
0 votes
0 answers
107 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-...
Madhurima's user avatar
  • 1,265
2 votes
1 answer
1k 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 ...
Agnibha's user avatar
  • 59
0 votes
2 answers
101 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 ...
thinker's user avatar
  • 1,402
1 vote
1 answer
1k 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 ...
sfdc_to_learn's user avatar
0 votes
1 answer
983 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 ...
Agnibha's user avatar
  • 59
1 vote
1 answer
2k 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" > ...
Agnibha's user avatar
  • 59
0 votes
1 answer
2k 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 ...
sfdc_to_learn's user avatar
0 votes
2 answers
5k 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=&...
cmainar's user avatar
1 vote
1 answer
61 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 ...
Semmel's user avatar
  • 2,272
0 votes
1 answer
789 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....
codingislife's user avatar
0 votes
1 answer
364 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 ...
user91530's user avatar
0 votes
1 answer
2k 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 ...
Raj SF's user avatar
  • 327
1 vote
1 answer
5k 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}&...
sumchans's user avatar
  • 641
0 votes
1 answer
376 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 ...
anji reddy's user avatar
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: &...
sumchans's user avatar
  • 641
1 vote
1 answer
3k 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?
Rahul Allada's user avatar
0 votes
1 answer
903 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="...
smlisk0630's user avatar
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.
ust's user avatar
  • 23
0 votes
1 answer
454 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!
Presario Fortythree's user avatar
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, ...
Santosh's user avatar
  • 73
0 votes
1 answer
204 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 ...
Saikat's user avatar
  • 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 ...
Koustubh's user avatar
  • 1,133
0 votes
1 answer
1k 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=&...
miCRoSCoPiC_eaRthLinG's user avatar
-1 votes
1 answer
472 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 ...
Tanya's user avatar
  • 1
0 votes
1 answer
502 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 ...
Krishnamurthy's user avatar
0 votes
1 answer
10k 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 ...
sumchans's user avatar
  • 641
0 votes
1 answer
1k 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':...
Michele Kleinhomer's user avatar
0 votes
1 answer
1k 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 ...
Michele Kleinhomer's user avatar
0 votes
1 answer
72 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 ...
GroundToCloud's user avatar
1 vote
1 answer
2k 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 ...
Presario Fortythree's user avatar
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} ...
Koustubh's user avatar
  • 1,133
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&...
Kamil Pilarski's user avatar
1 vote
1 answer
256 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- ...
Ordev's user avatar
  • 21
0 votes
0 answers
40 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 "...
Dbb's user avatar
  • 21
1 vote
1 answer
11k 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}&...
Lucas Borim's user avatar
0 votes
0 answers
179 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 ....
Alexis MASSON's user avatar
1 vote
1 answer
164 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 ...
Martin of Hessle's user avatar
2 votes
1 answer
551 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 &...
Brav's user avatar
  • 708
2 votes
2 answers
8k 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 ...
Json's user avatar
  • 1,587
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="...
Presario Fortythree's user avatar
0 votes
1 answer
975 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 ...
Rishav Garg's user avatar
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-...
Patlatus's user avatar
  • 16k
1 vote
1 answer
807 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....
Nishant Sharma's user avatar
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 ...
Presario Fortythree's user avatar
4 votes
1 answer
870 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" ...
Trace's user avatar
  • 43