+ Start a Discussion
Jonny SimmoJonny Simmo 

Live Agent - Can you control the firing of liveagent.prechat.findorcreate tags

Hello,

I was wondering if it is possible to put logic around liveagent.prechat.findorcreate tags so they only run when required.

For example, in my pre-chat form I search for an Account object and display that Account in the Agents Salesforce console if found.

If no Account is found I want to create a new Case and have that display in the Agents console.

My problem is it always creates the Case and displays it in the Agents console. I want to be able to control when this happens as I don't always want a case to be created and displayed.

So I have the tags to search for the Account create the Case in my pre-chat form, is there a way to control when they run? They seem to run what ever logic I try to put in.

Is there a way of doing this?

Many thanks

Jon