You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to trigger button click in a widget?

Accepted answer
5
Views
9
Comments
edited Aug 10, 2015 8:29PM in Communication Channels 9 comments

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&gt

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!