How to trigger button click in a widget?
Content
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:
<script type="text/javascript" src="https://My_Domain.com/cgi-bin/mydomain.cfg/php/cp/customer/development/widgets/custom/sample/MyCustomConditionalChatLink/1.0/Additional_JS.js"></script>
Tagged:
0