This documentation relates to an early version of Confluence.
For documentation on the latest Confluence release, please go to the documentation home page.

Form Field Markup for Templates

All Versions
Click for all versions
Confluence 1.4 Documentation

Index

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

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 02, 2006

    Stephanie Trunzo says:

    You can't use a dropdown menu inside a table. The \ character is read as another...

    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

    Thad Rasmussen says:

    I have had no luck changing the width of the input area, though it says you can....

    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?