You need to sign in to do that
Don't have an account?
Ajay Patel_
Track Lightning-input-field value in js controller of lightning web component
Hi,
Is there any way to get Lightning-input-field value inside js controller of Lightning web component?
Thanks
Is there any way to get Lightning-input-field value inside js controller of Lightning web component?
Thanks
Go through the below article,
https://help.salesforce.com/articleView?id=b2b_commerce_guest_security_profile.htm&type=5.
In markup....call js method
<lightning-input label="Search " type="search" onchange={searchField} ></lightning-input>
In Js
searchField(event){
console.log('My value',event.target.value);
}