How to trigger button click in a widget?
I have a custom ConditionalChatLink widget and I have placed a button in "availableImmediatelyMessage.ejs" as I would like to display this button when agents are available on chat.
I have created a test js file "Additional_JS.js" in the custom widget folder.
In my widget's "view.php", I have linked the JS file (even though I think all JS in widget folder should be linked automatically):
I have added this in view: