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!

<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" />


Thanks all!
Please see if this sample helps: