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

Textarea

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

警告

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.

関連トピック

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

Take me back to Help Home

  • ラベルなし

2 Comments

  1. Stephanie Trunzo

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

  2. Thad Rasmussen

    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?