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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,114 views 17 14
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