how to retrieve custom field value in confluence

I am trying to get the space name from my custom form for creation of space

3 answers

Can you provide some more information of what you currently have? Where and what is your custom form? Is it in a plugin, rendered in a macro or what? Is it then trying to create a space?

this is my velocity file





<title>publishing a space</title>

<meta name="decorator" content="atl.admin" />




<form name="myForm" action="com/atlassian/plugins/vanderlande/publishspace/myaction.action" method="GET">

$action.inputText: <input type="text" name="myInput">

<div class="field-group">

<label for="name">Name</label>

<input id="spacename" type="text" name="name" >


<div class="field-group">

<input type="submit" value="ok" class="text">


<div class="field-group">

<input type="submit" value="cancel" class="button">





this is my ijs file



<font><font><font></font>function<font>() {</font></font></font>

var baseUrl = AJS.$("meta[name='application-base-url']").attr("content"<font>);</font>

function<font> populateForm() {</font>



url: baseUrl +





<font></font>function<font>() {</font><font></font>



} });

function<font> updateConfig() {</font>



url: baseUrl +







<font></font>'{ "name": "' + AJS.$("#name").attr("value")+')'<font>,</font><font></font>


<font></font>false<font> })};} </font>




<font></font>"#publish").submit(function<font>(e) {</font>




my form display but i alway get error. rest does not work. so i cann't retrieve data from the form I want to create a space from java and reference the copyspace

it is a plugin

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

276 views 2 10
Read article

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