Posts

Showing posts from July, 2025

Tip of the week # 210 : Lightning Input Address with Autocomplete

Image
Lightning Input Address with Autocomplete Description : In Lightning Web Components (LWC), A lightning-input-address component with Autocomplete.(Powered By Google) Code snapshot is following : HTML File JavaScript: import { LightningElement,api } from 'lwc'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; export default class AddressLwc extends LightningElement { @api recordId; @api objectAPIName='Contact'; strStreet; strCity; strState; strCountry; strPostalCode; handleSuccess( event ) { this.dispatchEvent( new ShowToastEvent({ title: 'Successful Record Update', message: 'Record Updated Surccessfully!!!', variant: 'success' })); } handleSubmit(event){ let fields = ev...