FreshWidget cannot be initialised from Javascript.

I have installed the FreshWidget onto my app.  It works correctly if I simply copy and paste the given javascript into my HTML.


That is ok, but not good enough for what we want. I need to alter the querystring dynamically, so I can set the [requester] parameter, as explained in this post: https://support.freshdesk.com/support/discussions/topics/5246


But the widget does not work if I do this. Even if I copy the javascript code into the console and run it.


I made two example pages:


http://www.jeremiahblanch.com/freshdeskTest-1.html

http://www.jeremiahblanch.com/freshdeskTest-2.html


The first one has the code pasted into the HTML - and works fine.

The second one calls the javascript from a button click - and nothing happens.


How can I modify the querystring dynamically before I call FreshWidget.init ?


Thank you in advance!

Jeremiah


2 people have this question
1 Comment

I am facing same problem is there any way to initialise freshwidget through javascript. ???

Login or Signup to post a comment