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

This widget could not be displayed.

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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

300 views 2 4
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