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: 

Auto Click-Through JSD Widget Button

Anthony Garcia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2020

Hi all,

 

I am trying to modify the embedded code for the widget to allow it to open automatically when someone loads the page, vs. having the user click the "?" logo to open up the widget. Any insight on what the code should be?

 

OG code: 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2020

Hello Anthony,

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

Anthony Garcia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2020

This worked beautifully! Thank you!

Like Angélica Luz likes this
TAGS
AUG Leaders

Atlassian Community Events