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
Alexander Pinate 18Alexander Pinate 18 

How to hide a Prepopulated PreChatField from end user?

Hi Team,

I am trying to hide a field on the prechat form in Snap Ins:

embedded_svc.settings.prepopulatedPrechatFields = {LeadSource:"Website"}; //Sets the auto-population of pre-chat form fields
        //embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId
        //embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us)

How cn i hide this field for the end user? i am a bit new to this.

Thanks, 
Raj VakatiRaj Vakati
Is your pre-chat form is the custom form?

You can do this 


https://rajvakati.com/2018/11/13/customize-the-pre-chat-page-ui-with-lightning-components/

and you can set the input hide to populate the value
 
GuillermoPGuillermoP
Raj, it looks like your blog has an error on it and the page wont load. Can you send the correct URL please. I have this same question and can't find any resolution to supressing/hidding a pre-populated form field using the Embeded Service feature. :(
saam Guttasaam Gutta
Hello Alexander, Did you find a way on how to hide a field on pre chat window ( other than thru setup).
I want to hide the first name, last name on the pre chat form 
Thanks
Jeanne StalzerJeanne Stalzer
Saam or Alexander - did you find a way to hide a prepopulated prechat field?  I'm looking to accomplish the same.  Thank you.