This documentation relates to an earlier version of Confluence.
View this page in the current documentation or visit the current documentation home.

Form Field Markup for Templates

Skip to end of metadata
Go to start of metadata
All Versions
Table of Contents

Templates are written in the same notation as other pages in Confluence with special markup to insert form fields.

Here are the three kinds of form fields supported and the markup to create them:

Text field

@VAR@

Creates a text input field for a variable called VAR

Text area

@VAR|textarea(5x10)@

Creates a 5 x 10 text-area for a variable called VAR

Drop down menu

@VAR|list(one,two,three,four)@

Creates a drop-down box containing the values "one", "two", "three" and "four"

Every input field must have a unique name. If you have more than one text input field in the same template with the same name, Confluence will make sure that they all end up with the same value (This is useful if you need the same information in more than one place in the page).

Warning

There must be no spaces between the @-signs in the markup. This means you can't have items in your drop-down lists that contain spaces.

RELATED TOPICS

Adding a Template
Editing a Template
Creating a Page using a Template

Take me back to Help Home

Labels
  • None
  1. Nov 02, 2006

    You can't use a drop-down menu inside a table. The | character is read as another cell. This is really sad...

  2. Dec 04, 2006

    I have had no luck changing the width of the input area, though it says you can. Is it me, or the textarea fields all really fixed-width?



Log a request with our support team.



Raise an issue for our developers.



See answers from the community.



Tweet, blog and update our documentation.

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.