function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ajay Patel_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
AbhishekAbhishek (Salesforce Developers) 
Hi Ajay,

Go through the below article,

https://help.salesforce.com/articleView?id=b2b_commerce_guest_security_profile.htm&type=5.
yogeshRaoyogeshRao
Yes 

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);
}