Confluence not allowing or blocking set focus on text area on html form

I created an html form page that has some javascript embedded in it. When I run it independently, all the form controls on it work correctly e.g. I can click in the text area and type some content.

However when I embed the above html file via Bob Swift's html macro, it renders correctly, I'm able to select radio button option etc but when I click in the text area "abc" and try to type something it immediately places the cursor(sets focus) in the comment text field and the typying instead appears in the comment text area. I suspect there is some javascript that is native to Confluence that is stealing this setfocus.

I created a usermacro that disables the comment from showing up automatically on this page, I appiled it to this page and it comments dont show up now but when I click and try to type in my text area "abc", it does not work.

How do I resolve this issue? Thnks in advance.

1 answer

Confluence comes with an HTML macro already in the system plugins. Perhaps you need to disable it first before the Bob swift macro will work as they're interfiering with each other.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,694 views 26 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you