Docs
On this page
task2 min readApplication: Service Catalog

Show a cost on a catalog item

Set a one-off or recurring cost on a catalog item, or calculate it from the answers, and show it to the requester before they submit.

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.
  • For a calculated cost, know the Name of each question the cost depends on.

Steps

  1. Go to Administration → Catalog → Catalog items and open the item.

  2. Set Advanced to Yes and select Save & stay. The Cost tab appears under Item configuration.

  3. On the Cost tab, set Show cost to Yes.

  4. Enter the fixed costs. Use one field, or both.

    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.
  5. If you entered a recurring cost, select its Recurring frequency.

    Frequency Key
    Monthly monthly
    Quarterly quarterly
    Annually annually
  6. 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:

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

    The variables are described in Catalog scripting.

  7. Select Save & stay, then Preview. Check the cost shown on the form, and for a script, check it for several answers.

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.

Last updated 18 October 2026commit ebc6a0d50b09Chris Jones
Back to top