Can I put a simple http form on a page to send a simple text field via GET protocal to a web address

I am using Atlassian Confluence 3.4.9 and Adaptavist ThemeBuilder. My business user want to know if there is a simple way to create an http form on a Wiki page that has one input text field where the user inputs a short piece of data. Then there should be a SUBMIT button which, which clicked, sends the content of that input text field to a web address (not a Confluence web address). All of my google searches on this show only how to use confluence to submit a form that sends an email. I do not want to submit an email, I want to submit a normal form via HTTP "GET" protocol (or "POST" protocal if that is an option) Maybe the answer is so simple that it is escaping me.

2 answers

Hoo boy, do I feel foolish. As soon as I posted the question the answer struck like lightning. A simple "html" macro solves the problem! (Assuming, of course, that the html macro has been activated; by default in a vanilla Confluence install the html macro is not active).

To whit:

(left brace)html(right brace)
<center>
<form action="https://foo.com/up" method="GET" target="_blank">
<label for="emailaddress">Enter your e-mail address: </label><input type="text" name="emailaddress" size="60" maxlength="60"/><br />
<input type=hidden name="app" value="tsgoar"
<br><br><input type="submit" value="Request Something" onClick="return confirm('Submit request for app to be pushed to your BB?');">
</form>
</center>
(left brace)html(right brace)

The html macro is a fairly serious security issue, ie, allowing any page write to add arbitrary html to a page.

Better to write the html in a user macro!

The html macro is a fairly serious security issue, ie, allowing any page writer to add arbitrary html to a page. The sky's the limit. That's why it is not active by default.

Better to write the html in a user macro. You only allow one considered action, not just anything. It's possible to limit access to html macro with another plugin but using the user macro is simpler.

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...

370 views 20 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