---
title: "Create a form for adding pages from a template"
canonical: "https://support.appfire.com/space/LINC/471762854/Create%20a%20form%20for%20adding%20pages%20from%20a%20template"
format: markdown
---
> Macro (aura-html)

## Scenario

To guide Confluence users in content creation, you can provide a simple form for creating structured pages. The form consists of:

- A page title prefix and postfix
- An input field with a helper text for entering a page title
- A named button

The auto-generated pages can:

- Automatically use a Confluence template or page
- Automatically categorize the page under a parent page
- Automatically add labels to the page

## Result

![Screenshot of a page containing a form for creating pages with an input field for a project name.](media://cfe4fedf-641d-4fd3-a776-b4a5f94e9f00)

## Recipe

| Apps | Linking for Confluence, Scaffolding Forms & Templates for Confluence |
| --- | --- |
| Platform | Cloud |
| Level | Easy |
| Estimated time | 5 minutes ⏱ |
| Macros | Add Page via Form |

## Create the form

As a Confluence space administrator, create a form for adding pages about the organization projects.

1. Create a space template named `Project template` and populate it with the base structure for the project pages.
2. Create a page named `Projects` and insert the [Add Page via Form](https://appfire.atlassian.net/wiki/spaces/LINC/pages/471762354/Add+Page+via+Form?atlOrigin=eyJpIjoiYjI3NGJmYzU1YjVlNDNiM2I1ZDEwYmI1ZWIwZjliN2QiLCJwIjoiYyJ9) macro.
3. For the **Button text** parameter, enter a name for the button. For example, enter `Create a page`.
4. To configure the base structure for the generated pages, specify the following *Page source* parameters:
  - Set **Source type** to **Template/blueprint** to use a Confluence template as the base for the new pages.
  - From the** Source** drop-down list, select the page you created in step 1, that is, **Project template**.
5. For the **Parent** parameter, leave the default **Current page** value.  
This setting creates new pages as child pages of the page that hosts the form.
6. For the **Field hint **parameter, enter `Project name`.  
When the form input field is empty, this text appears as a helper text.
7. Expand the **Configure page title prefix/postfix **section and set the **Page title prefix** parameter to `Project - `. This setting ensures that all new pages are named *Project - <Project name>*.
  - The titles of all pages begin with *Project.*
  - The editor adds the specific project name in the form input field.
8. For the **Labels **parameter, enter `project`. This setting adds the *project *label to the new pages.
9. Click **Insert**.
10. Optionally, add the **Child Pages** macro.
11. Click **Publish**.

## Create a page using the form

As a Confluence page editor, to create a page for a project using the form:

1. On the *Projects *page, enter a project name in the form input field and click the **Create page** button.  
A page draft, named *Project - <Project name>,* opens in edit mode. It contains the *Project template* content.
2. Fill out the template for the corresponding project.
3. Click **Publish**.

The page is created as a child page of the *Projects *page.