You need to sign in to do that
Don't have an account?
RJ12
How to perform Two actions on one Button Click?
I have designed a Lightning Component (VF page in the front) for integration. Where I used two buttons, one for generating Access Code, one for generating Access Token. I want to combine 2 buttons into 1. If I click the button, Access code and Access Token must be generated.
My code looks like this:
<button class="slds-button slds-button_brand" data-url="{!'https://XYZ.com/oauth/authorize?client_id='+ v.CUSTOMOBJECT.Client_Id__c+'&scope='+v.CUSTOMOBJECT.scope__c+'&redirect_uri='+v.CUSTOMOBJECT.Redirect_Url__c+'&state=SF'}" onclick="{!c.getAccessCode}">Generate Access Code</button> <button class="slds-button slds-button_brand" onclick="{!c.getAccessToken}">Generate Access Token</button>
thanks
i hope it helps you.
kindly Let me inform if it helps you and close your query by choosing best answer if you got your right answer so it can helps others
thanks
sfdcmonkey.com
First we need to click on Acess code button and then click on Acess Token button.