Note that if you are mapping multiple fields, the map and create inputs take a semi-colon separated list. For example, if you were mapping a caseSubject detail in addition to your caseOrigin detail, you'd have something like the following:
You can automatically attach the transcript to a record i.e. a case by using the saveToTranscript method. Depending on wheter you are using the pre-chat API or deployment API all you have to do is follow the instructions on the developer guide to automatically related the transcript to the case.
Best Answer
Set the detail as a hidden input:
Map it:
Specify that you want it created:
If you want to show the Case when it is created make sure you set that as well:
Note that if you are mapping multiple fields, the map and create inputs take a semi-colon separated list. For example, if you were mapping a caseSubject detail in addition to your caseOrigin detail, you'd have something like the following:
There isn't a ton of information out there on the Live Agent Pre-Chat API and Pre-Chat form, yet, as it is still relatively new. I recently wrote a very detailed article about the live agent pre-chat API.