recently i'm trying to build chat bot feature, and i have a problem for getting values in the "pre-chat form" and place that value into a custom filed.
from what i read in google, i had to create a workaround to achieve this. and here's what i done :
First
i copied the "embedded code sniplet" from here (refer to pic below) , and pasted it on visualforce pages.
from visual force page, i add some code that i found on salesforce guide. and when i'm preview the page and connect to my live agent user, it WORKS perfectly, the values from 'pre-chat' form has been copied to a custom field.
and here's the thing, how can i connect my new visualforce page into the chat button ?
cause when i'm trying to setup my chat button and preview it from "bot builder', instead connect to my visualforce pages it still connect to standard 'pre-chat form' which means the values still not copied to the custom fields.
i've already done this ;
- setting chat button
- create a force.com sites
but it still cannot connected, am i missing something in here ?
here's the settings for chat button, sites
2 answers