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
Timmy AhluwaliaTimmy Ahluwalia 

snap ins

The chat is on the web site an the slds will fail there.
In the Embedded SnapIns Prechat form i want to hide the FirstName and the lastName. The code is pasted below, the firstname will hide but the picklist field will not show the options.
Please advice how to fix this.

 var componentInfoArray = [];
            if(field.type === "inputSplitName"){
         //       attributes.input="hidden";
                 attributes.type ="hidden";
     else if 
             (field.type === "inputSelect" && field.picklistOptions) {
                  attributes.options = "picklistOptions";
                attributes.input = "select";
         } else {
VinayVinay (Salesforce Developers) 
Hi Timmy,

Currently, picklist field in Snapins is not supported.

Kindly review below idea link and vote for this feature.

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Vinay Kumar