[SalesForce] Live Agent Pre-Chat API: Disable creating new case

I am trying to create a case using liveagent prechat API as explained in this link http://peterknolle.com/live-agent-pre-chat-api/. The case is created successfully but there is also a new case open along side as shown in the screenshot. How can I stop this new case from opening as I have already created a new case?

enter image description here

Best Answer

This is happening because when you have added Liveagent console to an app you might have specified to open New Case form.

enter image description here