New answers tagged

0

There are two parts to your question:- Saving the verification Id on Customer record - To do so, Instead of using force:InputField, you should use the lightning:inputField component in lightning:recordEditForm to display and edit the value of a record field on a Salesforce object. Use the fieldName attribute to specify the API field name. <aura:...


0

You can check the lightning:recordForm component (https://developer.salesforce.com/docs/component-library/bundle/lightning:recordForm/documentation). The component allows you to display the details of a particular record based on the Page Layout that you configured when the "Full" value for the layoutType parameter is used: Full - The full layout ...


0

your issue is that the anchor tags is missing the href attribute, which is what is used on right click > open in new tab to identify what url to reference. You will have to use NavigationMixin.GenerateUrl to populate the href attribute with the appropriate url.


0

The control visibility was set to false for ParentId on flexipage. Non issue. Thanks Paul for your help.


0

you need to pass the record id to the button attributes, either custom or not <lightning:button name="<RecordId Here>" label="Details" aura:id="link" onclick="{!c.handleClick}" /> and get the value on click: event.getSource().get("v.name") above, I used name, but you can also use value, or a ...


0

One of the permissions de check is "Read" and "Write" access to the lookup field (parent object) on the child object.


0

I believe the issue is that "recordData" doesn't pull the data before your onInit function runs. You need to allow the form to fully load before looking at the record data. For more info on using force:recordData: https://trailhead.salesforce.com/en/content/learn/modules/lightning_data_service/lightning_data_service_manipulate_records Try using on-...


1

Welcome to Salesforce Stack Exchange. Yes, there'a hideCheckboxColumn boolean attribute that you can set to true for this exact purpose. Edit: there's no option to hide the "Select All" checkbox in the header.


0

I have returned with answers! Thank you for any patience and assistance provided. I managed to get everything pushed over via change sets so that the Experiences were on equal footing, pulled down the ExperienceBundles for each, then went from there. First: Why didn't the IDs of the components match? Answer: This is because they, at the time, were pushed ...


0

So! my requirement was to open LWC in New Page from Quick Action. I tried many methods like LWC to LWC Button URL AURA to LWC FOR LWC to LWC -- Some of the standard objects does not support LWC as Quick Action After I tried, AURA to LWC, that works fine :) AURA.cmp: <aura:component implements="force:appHostable,flexipage:...


0

Your Lightning App markup is incorrect. It should be: <aura:application access="GLOBAL" extends="ltng:outApp" implements="ltng:allowGuestAccess"> <aura:dependency resource="markup://c:EntireSiteComponent" /> </aura:application> Everything else appears to be correct.


0

Make your textarea have a variant of label-hidden eg <lightning:textarea aura:id="txtnotes" variant="label-hidden" value="" maxlength="5000"/> This will mean that the label, which is empty, won't be rendered and take up space.


0

Use an "img" tag, to view the image in rich text field, Since rich text supports HTML Something like this : <img alt="alt text" src="https://mymagic-hub.s3.amazonaws.com/uploads/organization/logo.default.jpg"></img> Reference link to learn more about Rich text field : https://help.salesforce.com/apex/HTViewHelpDoc?...


1

The documentation for <lightning:recordEditForm> shows how to reset the form, under the section Resetting the Form: To reset the form fields to their initial values, use the reset() method on lightning:inputField. <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId"> <lightning:recordEditForm ...


1

Not a solution but I can say with 99% certainty is that you can’t do this without some crazy JS and CSS. I would personally avoid that and accept the fact that the buttons are at the bottom and focus on the things that I can change.


0

I fixed this issue by adding globalThis = window; before setting pdfjsLib.GlobalWorkerOptions.workerSrc


0

Sfdcpanther has the answer! With a full walkthrough of how to extend the lightning data table into a custom component so that you can put in your own components, or use the examples they gave. At a high level, you can extend the lightning data table component into a custom lwc, build in your custom types that point to separate lwc's, such as a lookup type ...


3

Using lightning.force.com/lightning in a URL link should be enough to have the user's page opened in Lightning Experience (LEX). In terms of opening a specific app, I've queried the DurableId of the AppDefinition I'm interested in and a link format of: yourDomainName.lightning.force.com/lightning/app/DurableId That should then ensure it opens up in LEX with ...


0

These events only exist in certain contexts, because they are handled by the Lightning Experience runtime. If you're getting null values, that means you can't use that event in that context. As an alternative, you can simply set window.location to the record Id, such as /001300000012345.


0

This is related to how the dtMax is being set on LWC component from the parent Aura component, I also would discourage the usage of var and replace it with let. Per documentation the lightning-input max and min expect ISO8601 formatted date strings to constrain the allowed date values. To explain how to set dynamically a max value in LWC I have created a ...


0

For LWC Sample result: HTML <div if:true={status.isLoading} class="slds-grid"> <div class="loading-container slds-is-relative"> <lightning-spinner alternative-text="Loading" size="small"></lightning-spinner> </div> <div> Please wait while PipeLaunch is ...


0

There is a better version of VF to fetch Session Id without Apex controller VF Page: UserSessionPage.page <apex:page contentType="application/json"> {!$Api.Session_ID} </apex:page> Apex Method: public static String getSessionId() { return Page.UserSessionPage.getContent().toString(); }


0

In JavaScript, we have truthy and falsy values. The string "false" is actually a truthy value. In simple terms, 'false' != false. To get a false value, do not enclose the value in quotes. <aura:attribute name="item" type="Camping_Item__c" default="{'Packed__c':false}"/>


0

I am able to solve this with event="aura:locationChange" Please refer this link for more details link


0

I used this snippet and my problem got resolved. var doctorId= component.find("doctorId"); for (var i=0; i<doctorId.length; i++) { console.log('checkboxes - ' + doctorId[i].get('v.value')); }


0

The problem is that you have both an Aura and LWC component with the same name. This is not allowed. You will want to delete or rename one of those components from the metadata files, presumably the Aura version. This may require some other refactoring of the code.


0

You need to specify the correct scope in order to receive the message: <lightning:messageChannel type="SampleMessageChannel__c" aura:id="SMC" scope="APPLICATION" onMessage="{!c.handleReceiveMessage}" />


0

TRY THIS <lightning:input type="email" label="Email"           pattern=".+@.+.com"             placeholder="username@yourDomain.com" /> </lightning:card> IT WILL WORK IN ANY  ".com" domain


1

The way to do that would be to use the disabled attribute. However, this will have other side effects, such as graying out the box and displaying the 🚫 mouse cursor. <lightning-input label="Demo" value={displayValue} disabled></lightning-input> Demo.


0

1 solution that i have right now is sending a event to aura component and using $A.get('e.force:refreshView').fire(); in aura to refresh component. This is just a workaround and not an ideal solution. createContact(){ const fields = {}; fields.LastName = this.lastName; const recordInput = { apiName: 'Contact', fields }; ...


0

Also check if other html file might be having this error. when tag is closed more than once, it will through the error. In essence, if there is any error in the lines between the that specific tag, it will through this error. I know, it is not user friendly.


1

HTML's default white-space property is set to normal, which is where multiple whitespace are collapsed into a single space. If you want multiple lines, you must either wrap the paragraphs into p elements or replace \n with <br />.


0

So there are two ways to integrate visual flows with lightning components. One is to have the lightning component be the main screen, with a flow launched from inside of it. The other is to have the flow be the main screen, with the lightning component launched inside of it. Given that you're using lightning:availableForFlowScreens, I assume your situation ...


0

Turns out the answer is yes, kind of. For some reason the list view was rendering before the listView attribute was populated. The solution is to just add an <aura:renderIf isTrue="{!v.listView != null}"> tag around the list view, which seems to cause it to wait to be populated until the attribute is properly populated, which in turn causes ...


2

You can use your {!message.value} inside Lightning formatted richtext to resolve the problem. e.g. <lightning:formattedRichText value="{!message.value}"/>


0

Use below in renderer file in aura omponent afterRender : function(cmp, helper) { var ret = this.superAfterRender (); // do custom rendering here $A.get("e.force:closeQuickAction").fire(); },


Top 50 recent answers are included