You need to sign in to do that
Don't have an account?
Matt Virgilio
How do I tie back a text variable to a salesforce field in Apex/VF?
Here is the code to a Live Agent pre-chat form I am using, but I can't route the text values back to my custom fields. My development skills are very minimal, so apologies if this is a no-brainer!
<body>
<form method="post" id="prechatForm">
<!-- Detail inputs -->
First Name: <input type="text" name="liveagent.prechat:First Name" /><br /><br />
Last Name: <input type="text" name="liveagent.prechat:Last Name" /><br /><br />
Dealership Name: <input type="text" name="liveagent.prechat:Dealership Name" /><br /><br />
<input type="submit" value="Request Chat" id="prechat_submit" />
</form>
</body>
Thanks all!
<body>
<form method="post" id="prechatForm">
<!-- Detail inputs -->
First Name: <input type="text" name="liveagent.prechat:First Name" /><br /><br />
Last Name: <input type="text" name="liveagent.prechat:Last Name" /><br /><br />
Dealership Name: <input type="text" name="liveagent.prechat:Dealership Name" /><br /><br />
<input type="submit" value="Request Chat" id="prechat_submit" />
</form>
</body>
Thanks all!
ShashForce
Please see if this sample helps: https://developer.salesforce.com/docs/atlas.en-us.live_agent_dev.meta/live_agent_dev/live_agent_pre_chat_forms_code_sample.htm