Posts

Showing posts from July, 2022

How to show details on selecting checkbox in LWC

Image
....HTML.... < template >     < lightning-card title = "Apply for leave" icon-name = "custom:custom14" >     < div class = "slds-m-around_medium" >         < lightning-input type = "checkbox" label = "Multiple day" onchange = {handleChange1} >         </ lightning-input >         < template if:true = {areDetailsVisible1} >     < div class = "slds-text-heading_small slds-m-bottom_medium" >         < lightning-input type = "date"   label = "Start date" name = "startDate" >         </ lightning-input >         < lightning-input type = "date" label = "End date" name = "emailAddress" >         </ lightning-input >     </ div >         </ template >     </ div >     < div ...

Create new opportunity and display in the list.

    component     <aura:component controller="saveRecordClass">       <aura:attribute name="homePage"  type="String"/>     <aura:attribute name="accountsData" type="Opportunity[]"/>     <aura:attribute name="newRec" type="boolean" default="false"/>      <aura:attribute name="showList" type="boolean" default="true"/>     <aura:attribute name="data" type="Object"/>     <aura:attribute name="columns" type="List"/>     <aura:attribute name="recordId" type="String"/>     <aura:attribute name="updatedRecord" type="Object[]" />       <aura:handler name="init" value="{!this }" action="{!c.doInit }"/>      <aura:if isTrue="{!v.showList}">         <lightning:card>             <aura:set attribute=...

Dependent picklist in Aura

Image
 ....Component.... <aura:component controller="MinorAssignment" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >     <aura:attribute name="fName" type="string"/>     <aura:attribute name="lName" type="string"/>     <aura:attribute name="email" type="string"/>     <aura:attribute name="phn" type="string"/>     <aura:attribute name="selectedBusinessVertical" type="String"/>     <aura:attribute name="selectedDivisionVertical" type="String"/>     <aura:attribute name="selectedAreaOfDivision" type="String"/>     <aura:attribute name="availableDivisionOfVertical" type="List"/>     <aura:attribute na...