Questions tagged [html]
Hypertext Markup Language. It is used in Visualforce pages, components, lightning components, forms, templates, formula fields...
1,049
questions
-2
votes
1
answer
299
views
Want to do the UI like this please help me how to put colored dots after status in html [closed]
want to show the image on UI like this
0
votes
1
answer
2k
views
LWC - uncheck checked boxes in lightning-datatable [duplicate]
This successfully grabs all checked rows in my lightning-datatable:
this.template.querySelector("lightning-datatable").getSelectedRows();
But how do I select the associated checkboxes, so I ...
1
vote
1
answer
745
views
LWC - Modal Prompt - how to get user input message onclick "Ok"
I implemented the Modal Prompt in my LWC
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_dialog_prompt
The documentation does not explain how to grab the user ...
1
vote
1
answer
1k
views
LWC vertical progressbar - problem in Previous and Next button logic
i am new to lwc, i created a component for vertical progress bar, but i am facing issue in previous and next button.
1.Next button works from a to e, ( a->b>c->d->e), but for the last ...
1
vote
1
answer
157
views
Vertical Table in LWC - Issue with returning RowWrappers from Apex
I'm trying to create this in LWC. It's a vertical table.
In Apex, I'd like to return a List of Rows. Example:
{Vendor Name, Company1, Company2, Company3},
{Quote Name, Company1data, Company2data, ...
0
votes
1
answer
460
views
Preheader Inbox View
Is it possible to display the preheader text in the Inbox view without adding a preheader content block on top of the email template?
0
votes
0
answers
230
views
Merging Duplicate cells in SLDS table on multiple columns
I am stuck while trying to create logic for merging duplicate cells coming from apex call on load. It is a simple SOQL on sobject.
I understand from my research on internet that rowspan is to be used ...
0
votes
1
answer
193
views
<NoErrorObjectAvailable> Script error in lightning web component (LWC)
I am trying to create a customer review form but having issues when the user is about to submit it.
Whenever I try to test by clicking the submit button, I keep getting the error below,
The code can ...
0
votes
1
answer
269
views
how to publish the records of a Data Extension in an html table
I am using the following code to retrieve all the records of a data extension:
<script runat="server">
Platform.Load('core', '1');
var stagingDE = DataExtension.Init("...
0
votes
0
answers
143
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-...
0
votes
1
answer
52
views
Unable to find action 'deleteItem' on the controller of c:RosterLineItemCmp
I am am really new to the development console on SF but I saw a pre-set resources and was messing around with it to make a few action button. All worked except for the one that I edited to remove a ...
0
votes
0
answers
115
views
Limit max width of image from rich text using Apex Trigger
I have two Rich Text Area fields named Description__c and Operational_Disposition__c. My goal is to limit the width of images inside these two fields to the max of 600px. I tried creating this trigger:...
0
votes
1
answer
70
views
I am sending some variables from a select to another Landing Page but the variables do not carry the value I select in the select
I am sending some variables from a select to another Landing Page but the variables do not carry the value I select in the select.
%%[
SET @SubmitPage = "https://url"
]%%
...
0
votes
2
answers
2k
views
Align button with inputs LWC
Hello everybody I am trying to align the next button with the inputs fields but I am not being able to do it. I have tried everything I can imaging but I cannot solve this issue. Could anybody help me?...
1
vote
0
answers
25
views
Does LDS Modals by default restrict tabbing behind it?
I am wanting to not tab behind a modal when that modal is opened. Reading the documentation for modals provided by salesforce, it seems that they take care of it. But when I am testing it I get mixed ...
0
votes
1
answer
4k
views
Overlapping problem in fixed header and fixed left first column
I have fixed header and first column of my LWC custom table. but the problem is when I scroll to right the other header titles are overlapping over my fixed column header (not for other rows of table ...
0
votes
1
answer
260
views
IP address error while invoking URL through form post request
I am invoking an external URL through HTML form post request.
Sample :
<form target="_blank" action="https://website.com/action.php" method="POST" target="abcd&...
1
vote
1
answer
540
views
Converting HTML String into pdf and sending through REST
I have a string having HTML content with me inside a apex method(this class is not linked to any vf page). I need to convert the HTML on the fly into pdf and send through rest API.
I know we can ...
0
votes
1
answer
138
views
How can we implement page up and page down functionality in custom table of LWC?
We have a custom table in LWC. We have a requirement if the user is at the top of the table (i.e at row 1) if he wants to see last record in table, there must be page down/up button with the help of ...
0
votes
1
answer
741
views
Can't use LWC in Email Template when using @wire method
I'm trying to use a lightning web component in an email template. I'd like to be able to set variables based on the state of the related object. As soon as I add reference to @wire, the email template ...
0
votes
1
answer
1k
views
how to remove this required message "Complete this field." .slds-has-error .slds-form-element__help [closed]
<html lang="en-GB" dir="ltr"><head><title>Register</title><link rel="shortcut icon" href="/b2bcustomers/favicon.ico?v=2"><meta ...
0
votes
0
answers
61
views
Html Parsing in Apex Class [duplicate]
I have a html template file available as attachment in one of my Salesforce object. It contains a proper html form with input tags and sub templates. Whenever I get a request from third party, which ...
0
votes
1
answer
145
views
Lightning Web Components/LWC (no aura): How do you set the maximum length of list when rendering with iterator?
How do you set the maximum length of a list with LWC? I understand in Angular you could use "ng-maxLength".
<template iterator:item={records}>
<!-- List up to ten records -->
...
-3
votes
1
answer
938
views
Use of TreatAsContent( ) function? [closed]
I am trying to understand TreatAsContent function? Can anyone please elaborate in simple words about this function and which scenarios it might be useful? like e.g. I have seen online mentions about ...
0
votes
1
answer
367
views
Create section when button clicked
Hi everybody I am trying to create a LWC that contains a Documents section like this one:
In the first part I have two inputs the left one called 'Type of document' and the other is 'URL Direction'. ...
0
votes
1
answer
236
views
Remove the last characters and add "..." at end and hover text on trimmed values
i have list of values to display.The requirement is if the length of value greater than 10,the remaining characters should be removed and add "..." to end .And on hovering the trimmed value ,...
0
votes
0
answers
2k
views
How to use Expandable sections in LWC?
I am using Expandable sections in my project. All works fine but when I click the expand (left) icon, it changes to (down) icon to expand the section. But when I refresh the page, it again becomes (...
0
votes
1
answer
210
views
Salesforce Web-to-Lead Form Column Separation
I'm trying to separate the following into two columns. Separation after the "phone" field. I'm using the code provided by salesforce to upload to our website. Also hoping someone can help me ...
0
votes
3
answers
773
views
Multiple If Statements for a merge field for a HTML Email Template
I am trying to create a conditional formula for a merge field for a HTML Email Template with the following logic;
IF both ICMS ID and Portal ID are present then only show ICMS ID
OR
IF only ICMS ID is ...
0
votes
1
answer
418
views
How to access the values from plain html inputs, when building an aura component?
I'm working on implementing multi-entity lookup from the SLDS examples https://www.lightningdesignsystem.com/components/lookups/#Multi-Entity
I'm trying to capture the user's input in the aura ...
0
votes
1
answer
921
views
How to change the color of an Accordion Label
I have an LWC that contains an Accordion with specific labels
I would like to change the color of part of the label based on specific conditions
For example
Now what I am trying to achieve is to have ...
0
votes
1
answer
89
views
How to print one aura component per page?
I have an aura component which contains a series of different auras. These auras show on screen depending on some condition and that page has to be printed. However most times, one aura component ...
4
votes
1
answer
2k
views
Render Long Text Area Line Breaks in LWC
I am trying to display a long text area in a lightning web component with its line breaks. Unfortunately the "\n" characters are being displayed as spaces in the HTML template rather than ...
1
vote
1
answer
1k
views
Selected input value not reflecting in JS controller of LWC
I am trying to create LWC component with HTML markup as below. The selected input values are not reaching JS controller. Tried multiple ways but the value is showing as null. Below is the code. What I ...
0
votes
1
answer
215
views
How to toggle Error on values change in LWC
This code shows permanent red border which i want to toggle based on selection of values. If no value is selected, then only it should show the red border and the message otherwise not. How can I do ...
0
votes
1
answer
35
views
Array referenced in HTML not found within JS
Been tasked with altering a few things within a LWC. This involves altering an array. This array is referenced within the HTML of the component, however never referenced within the JS, thus a bit hard ...
0
votes
1
answer
480
views
Storing results in a @api variable returns undefined using imperative apex
I have a variable, this.myVariable that is set to the results of a query that is called using imperative apex. When I try to print the value to the console log, I get undefined as the value.
Question
...
1
vote
2
answers
4k
views
My date input field doesn't display icon and placeholder on mobile
I'm using a date field in my lwc to use in the community. But it behaves differently between Desktop and Mobile. The placeholder and icon are gone.
Desktop version:
In mobile:
How can I keep the ...
1
vote
1
answer
162
views
How to tell if refreshApex has new data?
I am using refreshApex to get the latest data with a button. There is a possibility that there are no new changes and I want to display a message indicating there are no new changes.
Question
How can ...
0
votes
2
answers
2k
views
LWC: How to make DIV fit with mobile view
I have two DIVs which I want to fit in Mobile view according to resizing. In the image, you can its behaving like 2nd image and i want it to behave like 3rd image. I am least aware of responsive pages ...
0
votes
1
answer
855
views
Align two Tables side by side - Visualforce
I need to align two tables side by side. My code is here:
<apex:page docType="html-5.0" renderAs="pdf" standardController="csclm__Agreement__c" extensions="...
0
votes
1
answer
245
views
Filter search in LWC
HTML
<template>
<lightning-card>
<div class="slds-box slds-theme_default">
<div class = " slds-grid slds-size_12-of-12">
...
-2
votes
1
answer
47
views
HTML EMAIL Version [closed]
The following code i am using for HTML,
<table>
<tr>Test Name</tr>
<tr>Test Name 2</tr>
<tr>
<td>Test</td>
<td>Test 2</td>
...
1
vote
0
answers
1k
views
Not able to display Report Data in LWC - Lightning page
I want to display report's data in created LWC page so that I can use the Report for further desired processing. Have followed ReportManager Class and am able to display Total Rows Count , Report URL (...
0
votes
1
answer
155
views
VF Page is getting refreshed when clicked on an Enter key in apex:inputText box
I have an VF page which has the apex:inputText. When I click on Enter button, the whole VF page is getting refreshed/rerendered for no reason. I have no onkeypress events on top of the inputText box.
...
0
votes
0
answers
203
views
Cloud Page Unsubscribe functionality not working
We have 2 cloud pages. Our requirement is the global opt-out for emails. So when someone clicks on unsubscribe on the first page they should get unsubscribed from MC and Salesforce CRM. The rendering ...
1
vote
1
answer
1k
views
Named Pages: Footer on last page only
I am attempting to place a footer image in the bottom-right section of the last page of the Visualforce PDF only. I have found a solution that use named pages, however I cannot seem to get the ...
0
votes
3
answers
4k
views
LWC: How to use static Resource Image in CSS in Lightning Web Component?
I am trying to use static resource image in CSS using the below code -
JS:
//Importing image from static resource
import My_Resource from '@salesforce/resourceUrl/popUpImage';
//Defining this inside ...
5
votes
2
answers
740
views
How does js files behave when same lwc is repeated in a component?
I'm working on an lwc where I noticed an interesting behavior.
Scenario:
I have an lwc with the name "myLwc"(imaginary). It has the following files.
myLwc.html
myLwc.js
myLwc.js-meta.xml
...
0
votes
0
answers
77
views
<div> won't display in c-section-header
I am trying to add helptext underneath the header of a page. For some reason, when I add the div with slot="testSlot" in the below code, the div doesn't even render.
Screenshot of what I ...