• Gnana Sundar N Natarajan
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi all,
 I need to check and uncheck the checkbox in salesforce lighting. anyone, please guide me. below code doesn't work properly.
Controller:
 confirm :function(component, event, helper) {
        if(event.target.title =='false'){
           component.find("PaymentCleared").set('v.value',false);  
            component.set('v.simpleRecord.Payment_Cleared__c',false);
        }
        else{
             component.find("PaymentCleared").set('v.value',true); 
             component.set('v.simpleRecord.Payment_Cleared__c',true);
        }
Hi all,
 I need to check and uncheck the checkbox in salesforce lighting. anyone, please guide me. below code doesn't work properly.
Controller:
 confirm :function(component, event, helper) {
        if(event.target.title =='false'){
           component.find("PaymentCleared").set('v.value',false);  
            component.set('v.simpleRecord.Payment_Cleared__c',false);
        }
        else{
             component.find("PaymentCleared").set('v.value',true); 
             component.set('v.simpleRecord.Payment_Cleared__c',true);
        }