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

Hello,
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.
Thanks

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

Currently, picklist field in Snapins is not supported.

Kindly review below idea link and vote for this feature.

https://trailblazer.salesforce.com/ideaView?id=0873A0000015CkdQAE

Hope above information was helpful.

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

Thanks,
Vinay Kumar