Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

HTML input in static macro on confluance cloud

Samuel Bremner
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!
March 13, 2018

I am trying to create a simple Macro for confluence cloud which allows the user to search a table in the page using a HTML input and some javascript. 

If I create a dynamic macro I can get the HTML input to appear however the macro is loaded in an iframe so it can't search a table in the page that is outside of the iframe. 

If i try the same thing with a static macro (which is not in an iframe) the HTML inputs don't seem to load. You can load other html tags but not inputs. 

Does anyone know how I might be able to create a macro for confluence cloud that allows it to display inputs and search the page content based on the input value? 

1 answer

0 votes
Kombi, the best car ever
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

Hello, Samuel!

Based on the document below, you can see that custom HTML and JavaScript inside the application are restricted by default:


In my opinion, you have two alternatives here, you can either use a third-party scripting tool to create the tool, such as Tampermonkey. Or you can use the browser's search functionality by itself.

Other option, is to create a Confluence Cloud add-on that performs such functionality. You can learn more about this on the link below:

Kind regards,

Marco A. Bomfim

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events