Is it possible to embed the widget on a support page on our website in it's open state instead of initially just as a question mark Icon? We would love to embed the support desk, but understand iFrames will not allow this currently, but apparently a widget can be embedded, so we'd love a widget that is our FAQ list and Ticket creation (exactly the functionality currently available in the widget), but not in the form of a question mark our clients need to click to see the FAQs or form.
Hello Tom,
Welcome to Atlassian Community!
It's possible to make the widget to open automatically when accessing a page.
We tested here and the following code works correctly:
<script add your widget script here </script>
<script type="text/javascript">
setTimeout(()=>{
//gets the iframe on which the widget is embedded
let iframe = document.querySelector('#jsd-widget');
//gets the content of the iframe
let iframeContent = iframe.contentDocument;
//gets button which opens the widget
button = iframeContent.querySelector('#help-button');
button.click();
}, 1000)
</script>
Please, give it a try and let us know how it goes.
Regards,
Angélica
Thanks. That helps a bit. Not exactly what I was looking for, but 1/2 way there. And probably I can figure out how to click a few more buttons... ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.