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
sfdeveloper9sfdeveloper9 

pre populate case fields in live agent new case pop

I want to default the case origin to chat when new case tab is poped for chat request. We just have chat link and not a pre chat form. I have the below code included in the chat link but the origin is not set to 'Chat' on new case tab

liveagent.addCustomDetail('Case Origin','Chat');
liveagent.findOrCreate('Case').map('CaseOrigin','Case Origin',true,false,true);

Any suggestions are much appreciated. Thanks in advance.