Skip to main content

Questions tagged [init]

For questions related to the Init event used in lightning component development. Init is a predefined event sent to every component when component it is initialised.

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 views

Kakao JS SDK Calls in Salesforce

I'm trying to develop a Salesforce component that makes a request to KAKAO API using the KAKAO JavaScript SDK. this is my lwc Javascript code to initiate Kakao App import {LightningElement} from 'lwc'...
송지은's user avatar
0 votes
0 answers
1k views

How to clear the sessionstorage on browser refresh in Aura component?

I am using sessionStorage.clear() to clear the sessionStorage in Init method, but this one is clearing after clicking 2 times on refresh button of the browser, is there a way we can clear after ...
user avatar
0 votes
1 answer
276 views

Custom App does not refresh when passed URL in Summer 21

We have two custom apps: a Search app and a Custom360 app. The Search app provides a list of customers and their opportunities to the agent. Selecting a customer creates a custom URL in code which ...
Don's user avatar
  • 53
0 votes
1 answer
2k views

init method of Visualforce page on standard object layout doesn't render in lightning experience

Basically, I've got a pretty simple setup here, I need to register an event listener, so I did that on init. This works really well in Salesforce classic. In lightning experience, the init method ...
SkyAnthrax94's user avatar
2 votes
1 answer
4k views

How do I clear a selected onchange value from an aura component on reload?

I have an aura component with 3 dropdowns which are dependent on each other. Dropdown 1 is loaded on init. Dropdown 2 is loaded on a selection in 1.(image below blue section 1) Dropdown 3 is loaded ...
Irene's user avatar
  • 1,885
0 votes
1 answer
561 views

How to pass parameter to recordEditForm on init

I have 2 child components in a wizard the first on the first page the second on the second page. I pass a recordtype Id from the first component to the second component trough an event how do I pass ...
Thomas's user avatar
  • 2,320
0 votes
0 answers
2k views

Using promises with aura component callbacks

I noticed there a number of questions listed regarding this topic but I don't have the time to parse through all of them and look for the relevant information. I was hoping someone could quickly ...
weytani's user avatar
  • 397
0 votes
1 answer
783 views

On change of designer attribute, init() handler is called again

We are using lightning components in a community. We drag drop the components into a template and configure through designer attributes. For one of such lightning component, there is an init() handler ...
Sarang's user avatar
  • 2,665
1 vote
1 answer
2k views

Custom Lightning Component not getting refreshed under Utility Bar

I have a component under Utility Bar. When the owner is changed in the case detail. The component needs to pick the latest update and it will show number of cases that logged in user owns. When i ...
AjaySFDC's user avatar
  • 618
0 votes
1 answer
39 views

Component attribute set by one method coming as null in second method

I am calling two functions in my lightning bundle init in the following order helper.fetchAccountRequestAddressDetailsHelper(component, event, helper); console.log('before fetch'+component.get("v....
Rimii's user avatar
  • 361
1 vote
1 answer
595 views

can parent handle Childs event fired by child during init?

I have a child component <aura:component controller="campingController"> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:registerEvent name="add" type="...
Manjot Singh's user avatar
  • 3,586