Skip to main content
All CollectionsBuilding Calculators
Quantity Discount with Number Input
Quantity Discount with Number Input
K
Written by Kristina
Updated over a week ago

You can use the actual number entered by the user enters and the range-based value set by you in your calculations through a single number input element.

Use the element name directly in the formula for retrieving the range-based value, and type the element name[actualvalue] in the formula to get the actual value entered by the user.

Example:

The most common use case of the above feature is Quantity Discounts. You can let the user enter the desired quantity and calculate the price based on the quantity-range value set by you in the element properties.
​
As shown in the image below, you can set different prices for different quantity ranges, $5 for range 1 to 49, $4 for range 50 - 99, and so on.
​

Then, in the formula, you can retrieve the quantity-based price through the label name, i.e. "Quantity", and the actual value entered by the user in the number input through "Quantity[actualvalue]". So, the final price can be calculated by the formula - Quantity*Quantity[actualvalue]
​
​

Did this answer your question?