Skip to main content

New answers tagged

0 votes

Make lightning:layoutItem fill the remaining screen space

As of Spring 2023, some styling hooks are no longer global, so I had trouble with Anton's solution. This was my workaround... renderedCallback() { const position = this.template.querySelector(&...
louis's user avatar
  • 91
0 votes

force:refreshView not refreshing Related List - Single

Seems to still be an issue in 2024. I have a flow running on a custom object record that has a lookup to Case. On the record page of that record there is a Related Record standard component tied to ...
rzr's user avatar
  • 123
0 votes
Accepted

create an LWC to display hyperlinked Record Name

You can use the getRecord wire adapter to fetch the record data and then construct the URL dynamically based on the recordId. HTML: <template> <lightning-formatted-url value={...
Tushar Jadav's user avatar
  • 2,148
0 votes

Cannot find a way to know if iframe loaded html correctly on a lightning:container

It is not a recent question and a simple workaround is to use the messages and a iife. If you have a container, you have also an entry point like "index.js". https://webpack.js.org/concepts/...
Alain Cabon's user avatar
1 vote

LWC counterpart for aura's force:outputLookup

There is no analog for this element directly, as you can now use lightning-record-view-form and lightning-output-field: <lightning-record-view-form record-id={recordId} object-api-name={objectName}&...
sfdcfox's user avatar
  • 497k
0 votes

LWC Component to stay on same tab if user clicks on the Cancel button in alert

You'll have to manually set the tab: <lightning-tabset lwc:ref="tabset"> if(confirm(confirmMessage)) { this.hasUnsavedChanges = false; this.refs.tabset.activeTabValue = 'tab2'; } ...
sfdcfox's user avatar
  • 497k
0 votes

Using Contains in AURA for field Value

CONTAINS is a Salesforce formula operator, not JavaScript. There's no equivalent Expression Function, so you must do this comparison in your controller or helper: component.set("v.hasRed", ...
sfdcfox's user avatar
  • 497k
0 votes

Need two different page layouts. one for when you create a record with list page New button, another for the detail page

Can you try like this: Create advanced Record page (you can drag and drop fields) and In the each field section you add the following filter criterias. For Section need to be shown in Creation layout:...
Akilan D's user avatar

Top 50 recent answers are included