+ Start a Discussion
Meena25Meena25 

Lightning custom Button

When i click my custom button, a pop up window opens and again i have to click for me to perform the action and once processed, it doesn't get closed.

Two things here:

1)I don't want a pop up window, with only 1 click action should be performed

2)Once done window should be closed automatically

Best Answer chosen by Meena25
Meena25Meena25
I had added button tag explicitly and that was the actual issue which i resolved later.

All Answers

GovindarajGovindaraj
Hi Meena,

What action are you performing in that button click i.e. Calling VF page, URL etc ?

Thanks,
Govindaraj.S
Meena25Meena25
Hello Govind,
I have built a lightning component. On click of button, it will update a field and refresh the page. Now this click that am doing, i have to it twice as another window opens up and asks me to click again.
Meena25Meena25

I myself resolved this by using init handler attribute in lightning

<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>

This was missing in my lightning component

Meena25Meena25
I had added button tag explicitly and that was the actual issue which i resolved later.
This was selected as the best answer