#LWC Development1 discussing
- Recent Activity
- Created Date
- Recommended
- All Questions
- Questions with an Accepted Answer
- Unanswered Questions
- Questions with No Accepted Answer
Seeking LWC Developer + Accessibility Specialist
I have a client in need of a Salesforce Accessibility Specialist with STRONG Apex and LWC developer skills and experience creating managed packages for third parties. If you have these skills, please reach out to me ASAP. Thank you!
#Job Postings #LWC Development #Accessibility
Visual representation of parent to child communication and vice-versa using Lightning Web Component in Salesforce.
Parent to child communication using public property and method.
Child to parent communication using custom events.
Find the source code here: https://lnkd.in/evxBdrbR
#LWC #LWC Development #LWC Components #Salesforce Developer #Salesforce
Hi all
I have written LWC that adds a new row whenever I click on the plus button but the newly added row inherits the value from the previous row. I want to set the values for the newly created rows as optional. Can anyone please help me here?
Aug 12, 2025, 4:07 PM Hii,
If you want to ensure that newly added rows do not inherit values from the previous row, you should make sure that the data structure you use to hold the rows is initialized with completely new values each time(ideally blank here).
You can use row add approach something like this
Hi Guys,
Can you please suggest how can we print pdf from lwc component?
I tried window.print() which gives whole page, we only want contents from our lwc component.
Jul 17, 2024, 12:38 PM Hello community!
I had similar task and was able to complete it using just lwc!
For that I had to create the following js method:
handlePrintClick () {
let printableElement = this.template.querySelector('.print-section');
if (printableElement) {
let clone = printableElement.cloneNode(true);
let printWindow = window.open('', '_blank');
if (printWindow) {
printWindow.document.body.appendChild(clone);
let style = printWindow.document.createElement('style');
style.textContent = `
@page {
size: auto; /* auto is the initial value */
margin: 0mm; /* this affects the margin in the printer settings */
}
@media print {
body {
margin: 0;
padding: 0;
}
.no-print {
display: none;
}
}
`;
printWindow.document.head.appendChild(style);
printWindow.focus();
printWindow.print();
printWindow.close();
} else {
console.error('Failed to open print window');
}
} else {
console.error('Printable element not found');
}
}
and you need to update the content of html with css class to the place which you wanted to print (I had lots of inner data, parent and childs)
<div class="print-section">
Data which should be printed
</div>
Note: In my case I had all css values in the same html file (not a separate css, I used style tag)
How to build a Dynamic Multi-Select Picklist field in LWC ?
Multi-select picklists are commonly used in applications where users need to choose multiple options from a list of predefined values. Implementing this functionality using LWC allows developers to create powerful and customizable components within the Salesforce platform.
Follow this article to go through implementation details
https://sfdcpulse.wordpress.com/2024/02/27/lightning-web-component-dynamic-custom-multiselect-picklist/
#Salesforce Developer #LWC #Lightning Web Components #LWC Development
Jun 5, 2025, 12:06 PM Hello,
You can use lightning-dual-listbox
in LWC.
Below is Link to documentation. Using js you can iterate & form picklist values
Link -
https://developer.salesforce.com/docs/component-library/bundle/lightning-dual-listbox/example
Hi All,
I want to learn the LWC in Salesforce.
Could anyone please provide the roadmap that I need to follow.
If possible could please share the resources as well
Thanks in advance 😇
#Salesforce Developer #LWC #LWC Component #LWC Development #LWC ComponentsOct 25, 2024, 9:57 AM I can share you my udemy credentials..
you can learn lwc from there as well or from the resources above provided
Hi,
I am trying to reload the previous page after saving an edit form. After clicking on Save, I have used window.history.back(); but it only navigates to the previous page, I require it to reload as well. Is there a way to do this?
#LWC #LWC Component #Custom LWC #LWC Development #LWC Components
Dec 10, 2024, 7:23 AM Hii,
To navigate back and reload the previous page, the most straightforward solution is to use window.history.back() followed by a short delay and window.location.reload().
The implementation may look something like this :
window.history.back();
setTimeout(function() {
window.location.reload();
}, 500);
//I have created checkboxes using checkgroup the checkboxes are in single line iam trying to align in two columns but iam not succeded.
<lightning-checkbox-group name="Checkbox Group" label="Checkbox Group" options={options} value={value} onchange={handleChange}></lightning-checkbox-group> <p>Selected Values are: {selectedValues}</p>
Thanks for any Help
#Trailhead #LWC #LWC Development #LWC Component #Lightning #Lightning Web Components
Nov 18, 2024, 3:01 PM To display checkboxes in two columns using lightning-checkbox-group, you'll need to adjust the layout using CSS because lightning-checkbox-group doesn't natively support multi-column layouts out of the box.
You can achieve the two-column layout by wrapping the checkboxes in a custom div container and using CSS Grid or Flexbox to display the checkboxes in two columns.
You can use something like this :
/* Styling for the checkbox container to use grid */
.checkbox-container {
display: grid; /* Use grid layout */
grid-template-columns: repeat(2, 1fr); /* Create two equal columns */
gap: 16px; /* Add space between checkboxes */
max-width: 600px; /* Optional: set a max width */
}
/* Ensure the checkbox options fit well inside each column */
.lightning-checkbox-group .slds-checkbox_faux {
margin-bottom: 8px; /* Adjust the spacing between checkboxes */
}
@api recordId is not loading immediately in LWC used in QuickAction when
- Initially clicked on quick action => recordId - works Fine
- Updated record without reloading the page (which is done by another LWC in record Page)
- Again clicked on quick action => recordId - Will not load for immediate click so need to get from url
Oct 9, 2024, 9:30 AM If you're updating records via another LWC and need to refresh data in the Quick Action component, consider using refreshApex to re-fetch the record information.
RefreshApex is useful for ensuring that your Lightning Web Component (LWC) reflects the most current data, especially after a record update. It is a utility that allows you to refresh data fetched using @wire. It updates the record information without requiring a full page reload.
Ensure that the data you retrieve is done using the @wire decorator; this is necessary for refreshApex to function properly.
For detailed info on refreshApex , you can go through :
https://developer.salesforce.com/docs/platform/lwc/guide/apex-result-caching.html