---
title: "Initializing the counter value using Child Counter Status"
canonical: "https://support.appfire.com/space/SUPPORT/781779164/Initializing%20the%20counter%20value%20using%20Child%20Counter%20Status"
format: markdown
---
In this article, we will further analyze how to initialize the value of an [Add Page via Form.](https://appfire.atlassian.net/wiki/spaces/LINC/pages/471762354) To learn how to create pages with incremented IDs, visit the following documentation: [https://appfire.atlassian.net/wiki/spaces/LINS/pages/471893637](https://appfire.atlassian.net/wiki/spaces/LINS/pages/471893637) 

## \uD83D\uDCD8 Instructions

You can use the **Child Counter Status** macro to initialize the counter value to any number of your choice. 

1. Add the **Child Counter Status** to the page.
2. Specify the desired reset value in the Action field (e.g., reset to 1005 or any number you prefer).
3. The [Add Page via Form](https://appfire.atlassian.net/wiki/spaces/LINC/pages/471762354) macro, using a prefix like `%child-counter:next > number:000%`, will start from the next number . For example, if you reset the counter to 1005, the next number will be 1006.

![image](media://db37a748-c0cf-4c4d-a546-22d158b22c44)

![image](media://ecfe3e63-892a-4663-9ad8-4f3d47d28f10)

> ℹ️ Once you have initialized the counter values, please proceed to remove the **Child Counter Status** macro to avoid the counter to be reset.

## 🖇️ Storage format

You can copy and paste this code into the Confluence Source Editor:

```
<p>
  <ac:structured-macro ac:macro-id="dd5024c4-5b1d-441c-a645-93b935120cd0" ac:name="child-counter" ac:schema-version="1">
    <ac:parameter ac:name="">reset to 1005</ac:parameter>
  </ac:structured-macro>
</p>
<p>
  <ac:structured-macro ac:macro-id="46db243b-1c10-485b-b505-a0a6e06ea91f" ac:name="add-page-form" ac:schema-version="1">
    <ac:parameter ac:name="prefix">%child-counter:next &gt; number:000%</ac:parameter>
    <ac:parameter ac:name="linkText">Add</ac:parameter>
  </ac:structured-macro>
</p>

```

## Macro structure

You can recreate the example in the editor view:

![image-20240223-161156.png](media://ffc8105a-041b-48e0-8012-dc1b96ffaa95)


## \uD83D\uDCCB Related articles

> Macro (contentbylabel)