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
Ashrafali NagatiAshrafali Nagati 

how to display a custom checkbox field of contact object in pre-chat form using LWC

ANUTEJANUTEJ (Salesforce Developers) 
Hi Ashrafali,

>> https://developer.salesforce.com/docs/component-library/bundle/lightningsnapin-base-prechat/documentation

As mentioned in the documentation you can use the component and in the template part you can add a lightning-input of type checkbox.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Ashrafali NagatiAshrafali Nagati
Hi Anutej,

Thanks for your replay ...
is that ...it will achive my requirement i,e
i have a created a custom checkbox field in Contact obejct and in pre-chat form i need to display same checkbox filed and if user checks or unchecks this field same should be get reflected in that checkbox field.
this should be done using LWC .

or 
Another way is taking input from checkbox using LWC and reflecting same in that custom field.

i think you got my question ...if possible please suggest me how can i achive it.