VA - how to close chatwindow in onload of page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2025 12:03 AM - edited ‎04-04-2025 12:05 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2025 12:33 AM
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>
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.