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
Rakesh keerthi 9Rakesh keerthi 9 

Add more form fields to pre-chat fields dropdown

Hi Experts,

 I'm building a bot that has pre-chat form enabled. Here I've got 2 Questions
  • I see only 3 values in the dropdown.
User-added image
Here, how can I get Name, EmailAddress in the dropdown (I'm able to get them in pre-chat form)
  • If I get Name in the dropdown, I assign it to a variable, say varName(type=text), with pre-chat api enabled, if I add Hello, {!varName} to my message block, will it print Hello, UserNameEntered or Hello, {!varName} ?
Thanks
SandhyaSandhya (Salesforce Developers) 
Hi,

Check below salesforce document if that can help you.

https://developer.salesforce.com/docs/atlas.en-us.noversion.service_sdk_ios.meta/service_sdk_ios/live_agent_prechat_fields.htm
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya