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
Matt VirgilioMatt 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!
ShashForceShashForce
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