---
title: "Show a cost on a catalog item"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/catalog/show-a-cost-on-a-catalog-item/
type: task
application: catalog
last_updated: 2026-12-03
commit: 6777698daac5
---


Set a cost when a catalog item is charged for, so the requester sees what they are ordering. The cost can be fixed, recurring, or calculated from the answers.

## Before you begin

- You need the `administrator` role.
- The catalog item exists. See [Your first catalog item](page:catalog/build-a-catalog-item).
- For a calculated cost, know the **Name** of each question the cost depends on.

## Steps

<Steps>
  <Step>
    Go to **Catalog & templates → Catalog → Catalog items** in the Administration workspace and open the item.

    <Image src="asset:screenshots/admin/catalog-show-a-cost-on-a-catalog-item/nav-catalog-items.png">The Catalog items item in the Catalog menu.</Image>
  </Step>
  <Step>
    Set **Advanced** to Yes and select **Save & stay**. The **Cost** tab appears under **Item configuration**.
  </Step>
  <Step>
    On the **Cost** tab, set **Show cost** to Yes.

    <Image src="asset:screenshots/admin/catalog-show-a-cost-on-a-catalog-item/cost-tab.png">The Cost tab under Item configuration, with Show cost set to Yes and the fixed cost fields above the Cost script.</Image>
  </Step>
  <Step>
    Enter the fixed costs. Use one field, or both.

    <!-- fields: catalog/entities/FieldDefinition and platform/entities/FieldDefinition on QuestionItem, tag 2027.1.7 -->

    | Field | Description |
    | --- | --- |
    | Show cost | Shows the cost to the requester on the form. |
    | One-off cost | A money amount charged once. |
    | Recurring cost | A money amount charged every period. |
    | Recurring frequency | The period of the recurring cost. Monthly when empty. |
    | Cost script | Calculates the costs from the answers. Its result replaces the fixed costs. |
  </Step>
  <Step>
    If you entered a recurring cost, select its **Recurring frequency**.

    <!-- source: catalog/data/AvailableValue?Table=QuestionItem&Field=RecurringFrequency -->

    | Frequency | Key |
    | --- | --- |
    | Monthly | `monthly` |
    | Quarterly | `quarterly` |
    | Annually | `annually` |
  </Step>
  <Step>
    Optional: to calculate the cost, write a **Cost script**. The script reads the answers in `questions` and the fixed costs in `lineItems`. It returns an object keyed by `one-off` or a frequency key, each entry holding `cost`. This script charges 10 per licence requested, once:

    ```javascript
    let quantity = questions.LicenceQuantity.value() || 0;
    answer = { "one-off": { cost: quantity * 10 } };
    ```

    The variables are described in [Catalog scripting](page:catalog/catalog-scripting).
  </Step>
  <Step>
    Select **Save & stay**, then **Preview**. Check the cost shown on the form, and for a script, check it for several answers.
  </Step>
</Steps>

## Result

The form shows the item's cost before the requester submits. Costs of 0 are not shown. A key the script returns that is not `one-off` or a frequency key is ignored. When the request is submitted, the costs are stored with the generated record. In a bundle, each item's cost counts towards the bundle's totals. See [Create a catalog bundle](page:catalog/create-a-catalog-bundle).

## Related

- [Catalog item fields](page:catalog/catalog-item-fields)
- [Catalog scripting](page:catalog/catalog-scripting)
- [Create a catalog bundle](page:catalog/create-a-catalog-bundle)
- [How the service catalog works](page:catalog/how-the-service-catalog-works)
