New answers tagged

1

The easiest way to do this is to use SFDX/VSCode (or some other similar tool that interfaces with the Metadata API). Once you have everything set up, you'll be able to pull down your org's Metadata. Then it should be as simple as CTRL/CMD-F to see if the template name is referenced in any files.


0

I think you can not call JS from a button in Lightning. When transitioning from classic to lightning one of the things you should take care is exactly that. SF considers calling JS from a button to be security risk and hard enforce good coding practices there. You should design the same functionality using hopefully Process or Flow. If they are not ...


0

Make Sure to change extend LightningElement to extend NavigationMixin(LightningElement) without which the NavigationMixin would not work. Docs Reference


0

I'm working on similar solution. It's working as expected for me. Below is my URL hack /lightning/o/Contact/new?defaultFieldValues=AccountId={!Account.Id},LastName=Vamsy&navigationLocation=RELATED_LIST&backgroundContext=%2Flightning%2Fr%2FAccount%2F{!Account.Id}%2Fview


0

Since you want to bypass the custom component override for these URL buttons, you can do this by simply adding a nooverride=1 parameter to the URL Like this: /lightning/o/Case/new?nooverride=1&recordTypeId=XXX&test=456defaultFieldValues=Subject=TEST123 Adding this parameter will bypass your custom override, leaving the standard new buttons pointing ...


1

You can handle this by using onkeypress and checking that the pressed key is 13. <lightning-input type="search" onchange={handleSearchKeyChange} label="Search..." value={searchKey} onkeypress={handleEnter}> </lightning-input> <lightning-button class="slds-m-top_small" ...


0

Unfortunately, what you are looking for is not a supported feature in Lightning at the moment (see idea link below). This is a painful limitation on the platform, but is not totally hopeless as you can still create list buttons and add to your lightning pages. The limitation here is that you have to decide whether to send the user to a URL, run some ...


Top 50 recent answers are included