Salesforce Lightning Web Component

Salesforce

Highlight and Bold Matching Text Salesforce Lightning Web Component LWC

Sample Code:HTML: <template>     <lightning-card title="Highlight and Bold Matching Text">         <div onkeyup={handleKeyUp} class="slds-m-around_medium">             <lightning-input                 label="Search"                 type="search"                 onchange={handleChange}                 value={searchKey}             ....

Salesforce

How to highlight matching text in Salesforce using Lightning Web Component(LWC)?

Sample Code: HTML: <template>     <lightning-card title="Highlight Matching Text">         <div onkeyup={handleKeyUp} class="slds-m-around_medium">             <lightning-input                 label="Search"                 type="search"                 onchange={handleChange}                 value={searchKey}             ></lightning-input> ....

Salesforce

How to display matching text in bold in Salesforce using Lightning Web Component(LWC)?

Sample Code: HTML: <template>     <lightning-card title="Bold Matching Text">         <div onkeyup={handleKeyUp} class="slds-m-around_medium">             <lightning-input                 label="Search"                 type="search"                 onchange={handleChange}                 value={searchKey}             ></lightning-input> ....

Salesforce

“errorCode”:”REQUIRED_FIELD_MISSING”,”field”:”Name”,”fieldLabel”:”Account Name”,”message”:”Required fields are missing: [Name]” Exception in Salesforce

Error while creating Account {"status":400,"body":{"message":"An error occurred while trying to update the record. Please try again.","statusCode":400,"enhancedErrorType":"RecordError","output":{"errors":[],"fieldErrors":{"Name":[{"constituentField":"Name","duplicateRecordError":null,"errorCode":"REQUIRED_FIELD_MISSING","field":"Name","fieldLabel":"Account Name","message":"Required fields are missing: [Name]"}]}}},"headers":{}} The above exception occurs when using createRecord from 'lightning/uiRecordApi' if ....

Salesforce

Import Multiple Picklist Fields in Salesforce Lightning Web Component

Sample Code: HTML: <template> <lightning-card> <div style="width:200px; padding:0.5rem;"> <lightning-combobox label="Industry" value={selectedIndustryValue} options={optionsIndustry} onchange={handleIndustryChange} placeholder="Select Industry"> </lightning-combobox> </div> <div style="width:200px; padding:0.5rem;"> <lightning-combobox label="Account Source" value={selectedAccountSourceValue} options={optionsAccountSource} onchange={handleAccountSourceChange} placeholder="Select Account Source"> </lightning-combobox> ....

Salesforce

Creating multiple records without Apex using Lightning Web Component in Salesforce

Sample Code: Lightning Web Component: HTML: <template>     <lightning-card title="LdsCreateRecord" icon-name="standard:record">        <div class="slds-m-around_medium">             <lightning-input label="Account Name" onchange={handleNameChange} class="slds-m-bottom_x-small"></lightning-input>             <lightning-input label="Contact First Name" onchange={handleFirstNameChange} class="slds-m-bottom_x-small"></lightning-input>             <lightning-input label="Contact ....