Skip to content
MyAppBuilder
StableSalesVersion 1Business component

Discount Input

Overview

A percentage box (0–100) labelled Discount (%) to drop into a quote or order form.

A percentage discount field.

When to use

  • Give a seasonal discount on a quote.
  • Record the discount agreed with a customer on an order.

When not to use

  • You need a fixed-amount discount — use a Currency input instead.

Quick start

  1. Drag Discount Input inside a Form (for example in Quote Builder).
  2. Add a number field with the key discount to the form's entity so the value is saved.
  3. Preview and enter a percentage; the value is limited to 0–100.

No entity is created. To store the value, add a Discount number field (key discount) to the entity your form saves to, for example Quotes or Orders.

Note: When you add this block, any missing entities are created for you and existing ones with the same name are reused. You can rename fields or point the block at another entity afterwards.

Layout rules

  • Can contain any component.
  • Can be placed in any container (page, section, card, row, column, grid…).

Properties

Titletext

Kept with the blueprint; the visible label is Discount (%). Change the label on the inner Number input.

Default: Discount Input

Data binding

No entity. It expands into a single Number input named discount (min 0, max 100, step 1, default 0) with the help text Applied to the total.

Events

This block is built from ordinary components. Select one of them (in Layers) to change what happens on these events:

On change
None on the block; the inner Number input fires onChange.

Responsive behavior

Uses 12 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.

Permissions

Use the Permissions tab to show this component only to some roles. Hiding a component is a convenience, not security — the server always checks who may read or change data.

Common patterns

  • Show the discounted amount in a Text component with a template binding that multiplies the amount by (100 − discount) / 100.

Limitations

  • The discount is not applied automatically — it is just a saved number until you add a calculation.

Troubleshooting

The discount is not saved.

Why: The entity has no field keyed discount.

Fix: Add a Number field named Discount to the entity.

Related

Was this helpful?