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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.