We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

VA - how to close chatwindow in onload of page

anusha reddy v1
Tera Contributor

hi,

When Live agent is not available, we are sending a message as below
[
Please ask your question <a href="/sp?id=support_case" target="_blank" rel="noopener noreferrer">here</a>. "

]
this is existing code in bot response message. It is opening support case and opening chat window also. how to close chatbot window when user clicks on support case link and open only page?
any suggestions please.

2 REPLIES 2

Medi C
Giga Sage

Hello @anusha reddy v1,

 

Are you on ServicePortal? If so, could you please try:

<a href="#" onclick="window.parent.VAWebClientAPI.close(); window.location='/sp?id=support_case'; return false;" target="_self">here</a>

 


Thanks & Best regards,
Medi

Yathvika
Tera Contributor

Hi @anusha reddy v1 - Were you able to solve this issue. I know its been long but just want to check is there is a solution to close the chat window when page re-loads or redirected to another page ?

TIA.