The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to dynamically enable/disable the service desk widget?

Jason Burrows
April 6, 2018

We want to show the Service Desk Widget only in specific circumstances.

I've tried loading it dynamically (just by appending the script to the document body) but it doesn't execute (even though the resulting script in the HTML is identical to if I added it to the static index.html).

I imagine this is because it uses document.write, which is not available when the script is executed when added dynamically.

Is there any way around this?  Can I load it in the static HTML and then disable it somehow until I want it to be shown?  Any chance the dependency on document.write will be removed (since usually that is not a real requirement)?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
carlos muñoz
August 19, 2019

Have you figured out any way to embed JSD Widget out from índex.html? I'd appreciate it. I have the same issue. 

TAGS
AUG Leaders

Atlassian Community Events