Insert Record in Lightning Component Salesfroce

Apex Class :- “StudentController” // Here, “Student” is a Custom Object, insert details in Student Object.public class StudentController { @AuraEnabled public static Student__c SaveStudentDetails(Student__c stndObj){ insert stndObj; return stndObj; } […]

Use Lightning Component in Visualforce Page

Component Name:- “LCForComp” <aura:component ><h2 >Hello! Lightning Component Example!!!</h2><br/><button class=”slds-button slds-button_brand” onclick=”{!c.showAlert}”>Click Button</button></aura:component> Lightning Component Controller.js ({ showAlert : function(component, event, helper) { alert(‘Test Alert!!!!’); }}) Ligtning Application:- “LCForApp” <aura:application […]

Navigate Lightning Components in Salesforce

Lightning Component :- Component1 <aura:component implements=”force:appHostable”><aura:attribute name=”Txt” type=”String” default=””/><div class=”slds-box slds-theme_default”>This is component 1.<br/><br/><lightning:input type=”text” value=”{!v.Txt}” label=”Enter Text : “/><br/><br/><lightning:button variant=”brand” label=”Navigate” onclick=”{!c.navigateToCompTwo}”/></div></aura:component> Component1 Controller.js ({ navigateToCompTwo : function(component, event, […]

force:navigateToURL example in Salesforce Lightning

Apex Class:- “AccountListController” public class AccountListController { @AuraEnabled public static List <Account> fetchAccts() { List<Account> lstacc= [ SELECT Id, Name, Industry FROM Account LIMIT 10 ]; return lstacc; } } […]

Using reCaptcha Dynamically in Salesforce

Add Google as a Remote Site in Salesforce Apex Class:-reCAPTCHA_Controller public class reCAPTCHA_Controller {public String myfName {get;set;}public String mylName {get;set;}public String myEmail {get;set;}private static String baseUrl = ‘https://www.google.com/recaptcha/api/siteverify’;private static String […]