# Basic Slider

The **Basic Slider** element allows you to add a Basic Slider with start and end values.

## Element Tab

The **Basic Slider** element has the following attributes in the Element tab:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FJ0SesqRb1V8GoZp1TXO0%2Fimage.png?alt=media&#x26;token=55e455ae-780d-47aa-9142-f4390aeda4ff" alt=""><figcaption></figcaption></figure>

* **Name** - Title of the element
* **Description** - Description of the element
* **Minimum Range Value** - minimum value that the Basic Slider Button can take
* **Maximum Range Value** - maximum value that the Basic Slider Button can take
* **Range Step** - shows the step to grow the range. The field will be **disabled** if the **Jump between scale points** setting is enabled or the [**Input** ](#input)**slider style** is selected.
* **Default Range Value - t**he initial range value is automatically set for this field before user input or changes.
* **Slider Scale Points** - specify the exact data points to emphasize on the slider. Enter multiple values **separated by commas**, using **dots for decima**l numbers. *Example: 7.5, 10, 13.5*
* **Name of Value** - here you can put unit measures, such as kg(kilograms), gr(grams), m (meters), etc. There is also an option to choose the alignment of the units against the value.
* **Jump Between Scale Points** - when enabled, the slider will lock to the specified scale points, ensuring users can only select predefined values in **Slider Scale Points** and not anything in between.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Fy11D59pwW1fCrwapnYWC%2F%E2%80%B9%20Cost%20Calculator%20%E2%80%94%20WordPress%20(3).gif?alt=media&#x26;token=4b3fc2f5-f394-43bf-a05e-5dc1c1de9bae" alt=""><figcaption><p><strong>Jump Between Scale Points</strong></p></figcaption></figure>

* **Multiply by Unit Price** – enables the use of a unit price multiplier. When toggled on, the final value will be calculated by multiplying the selected value by the specified unit price.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FdW60f5dCVE7mlUfP7ZmB%2Fimage.png?alt=media&#x26;token=32e36a6c-ec69-4aae-9492-91df95651a8d" alt=""><figcaption></figcaption></figure>

* **Unit Price** – the cost per unit of the selected value. This numeric field supports decimal values and defines how much each unit contributes to the total.
* **Unit** – a label indicating the measurement unit used for the selected value (such as centimeters, meters, or inches).
* **Replace Subtotal with Multiplied Value** – when enabled, this option replaces the original subtotal with the calculated value from the multiplication. Useful for pricing scenarios based on custom measurements.
* **Pricing Structure** - The **Pricing Structure** setting defines **how the Cost Calculator calculates the final value** of the field based on the quantity selected by the user. [**Learn More.**](#pricing-structure)

## Styles

Under this tab, you can select the suitable slider range style according to your needs:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F1NPfCYmCAn8aoQUTOXkE%2Fimage.png?alt=media&#x26;token=c71d7b95-1512-4e9a-9d1c-944cf1143676" alt=""><figcaption></figcaption></figure>

Here are the available styles:

{% tabs %}
{% tab title="Default" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FYlvOeBuNIdN1XoUKEcg8%2Fimage.png?alt=media&#x26;token=7f99d5b6-5e85-487d-9e36-e03ff919547c" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Small" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FdCxpg4KnVZs0MWdlgnX5%2Fimage.png?alt=media&#x26;token=977b0b91-41f3-48a5-9942-d6102ad60fe5" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Multi Point" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F6hZ8Wp0oFHG5AShuayiJ%2Fimage.png?alt=media&#x26;token=a093998c-d51e-45e3-b8fa-7b6bf6ad8ee4" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Flat Minimal" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FWBSuqpb6PFtFlwk5wxuV%2Fimage.png?alt=media&#x26;token=390c2007-4c1b-4818-8f5d-5d42cfa40be5" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Modern" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FBkhskd3KH3SbbSe1t2n0%2Fimage.png?alt=media&#x26;token=cc0cce8e-ce40-4eb0-9331-4b0ab2b1f8f7" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Input" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F6rjARvO5wadbJagAzYre%2Fimage.png?alt=media&#x26;token=19c41431-3969-416f-87d9-4372ce06a9cb" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Settings Tab

The Basic Slider element contains the following attributes in the Settings tab:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FUWbtYGKqaqtkHgsRafzK%2Fimage.png?alt=media&#x26;token=a500b089-e443-423c-8aba-9feb6c93a319" alt=""><figcaption></figcaption></figure>

* **Currency Sign** - Enable if you want to show the currency symbol in the total summary
* **Round Value** - Enable if you want to round the value to the whole number in the total summary
* **Hidden by Default** - The element will be hidden by default.
* **Calculate hidden by default** - If any case hides the element via the **Hidden by Default** setting or  hidden by some [**condition**](https://docs.stylemixthemes.com/cost-calculator-builder/conditional-system), the element's default value (if it is set) will be counted in the formula&#x20;
* **Show in Grand Total** - Disable if you want to hide the element in Grand Total.
* **Required** - Defines whether the element will be required to fill in or not.
* **Additional Classes** - Add extra classes to the HTML elements to make further style changes

### Add a measuring Unit

This setting allows you to add a measuring unit (Ω, cm, kg, inch, etc.) to the field.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FtSJbF97Dz9m59TfzvmAb%2Fimage.png?alt=media&#x26;token=f911f960-a07f-444f-990c-5e344de61123" alt=""><figcaption></figcaption></figure>

* **Unit Symbol** - enter the unit symbol&#x20;
* **Position** - select the position where the symbol should be displayed relative to the number
* **Thousands separator** - select the symbol to [separate thousands ](#user-content-fn-1)[^1]
* **Number of decimals** - indicate the number of decimals in the fractional part
* **Decimal separator** - select the symbol to separate the fractional part

## Pricing Structure

:star:**Premium Feature**

The **Pricing Structure** setting defines **how the Cost Calculator calculates the final value** of the field based on the quantity selected by the user. It allows you to override the field value before it is passed to the [formula ](https://docs.stylemixthemes.com/cost-calculator-builder/calculator-elements/total)field. This is especially useful for applying quantity-based discounts or custom pricing logic.

{% hint style="success" %}
Pricing structure is available in [**Quantity**](https://docs.stylemixthemes.com/cost-calculator-builder/calculator-elements/quantity) and [**Basic** **Slider**](https://docs.stylemixthemes.com/cost-calculator-builder/calculator-elements/range-button) Elements.
{% endhint %}

Pricing Structure has 4 different options:

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Default</td><td><a href="#default-pricing">#default-pricing</a></td></tr><tr><td>All Units Pricing</td><td><a href="#all-units-pricing">#all-units-pricing</a></td></tr><tr><td>Tiered Pricing</td><td><a href="#tiered-pricing">#tiered-pricing</a></td></tr><tr><td>Flat Unit Price per Range</td><td><a href="#flat-unit-price-per-range">#flat-unit-price-per-range</a></td></tr></tbody></table>

By default, the calculator uses the [**Default** ](#default-pricing-structure)pricing structure. It just passes the entered value by the user to the formula field without changes.&#x20;

{% hint style="warning" %}
Pricing Structure is not available when the [**Multiply by Unit Price**](#settings-tab) setting is on.
{% endhint %}

When you select **All Units Pricing**, **Tiered Pricing**, or **Flat Unit Price per Range**, the calculator opens additional pricing settings, allowing you to configure pricing ranges and display a discount badge:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FN0EehpXLmia1e5KKxAIX%2Fimage.png?alt=media&#x26;token=acc0b303-9fc5-40bf-bd77-343209bad67d" alt=""><figcaption></figcaption></figure>

Before looking at each pricing structure, let's understand the common settings of them:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FWenyimlEjibXGwKfd9jU%2Fimage.png?alt=media&#x26;token=66fc2179-b411-447f-bd4b-310cdcca41ae" alt=""><figcaption></figcaption></figure>

* **Pricing Structure** - choose one of the available pricing structure options.
* **Pricing Range Table** - on this table, you can define the range and unit price for the inputs. The range always starts from the [minimum ](#element-tab)value of the element that you set, and ends with the [maximum ](#element-tab)value of the element. You can add new ranges by clicking the <kbd>Add another range</kbd> button, and delete the last range by clicking the <i class="fa-xmark-large">:xmark-large:</i> icon next to it.
* **Badge Text** - here you can define the label that will be displayed in the discount badge that will be displayed along with the field.
* **Format** - choose one of the available formats to display the discount badge on the element. There are three options:
  * `%` - displays the discounted amount as a percentage
  * `$` - displays the discounted amount in currency
  * `$ + %` - displays the discounted amount in currency and a percentage
* **Variants** - choose the discounted badge style.

Here you can see the different badges and how they look with sample examples:

{% tabs %}
{% tab title="% and Outlined" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Fn2sncQAgPkDK5m5lM2be%2Fimage.png?alt=media&#x26;token=4823a2ca-92b3-4670-8767-11af7d6f2b50" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="$ and Primary" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FYvtwyDw5JxsBI5Uv7zYB%2Fimage.png?alt=media&#x26;token=06613c86-02f3-4312-ae8b-50941c27673d" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="$ + % and Solid " %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FT9DV7aZ1e5tJFO4NvlYe%2Fimage.png?alt=media&#x26;token=567d344b-c76b-48cb-8312-11fcae3b0a22" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

Before going deep to learn about each structure, here is a quick summary of them:

<details>

<summary>Pricing Range used in the table examples</summary>

* From 0 to 10 with a unit price of 17
* From 11 to 100 with a unit price of 14
* From 101 to 200 with a unit price of 12
* From 201 to 250 with a unit price of 10

</details>

| Pricing Structure                                           | Explanation                                                             | Input: 8     | Input: 57               | Input: 221                                    |
| ----------------------------------------------------------- | ----------------------------------------------------------------------- | ------------ | ----------------------- | --------------------------------------------- |
| [**Default Pricing**](#default-pricing)                     | Passes the entered value directly to the formula without modification   | 8            | 57                      | 221                                           |
| [**All Units Pricing**](#all-units-pricing)                 | Applies one unit price to all units based on the matched quantity range | 8 × 17 = 136 | 57 × 14 = 798           | 221 × 10 = 2210                               |
| [**Tiered Pricing**](#tiered-pricing)                       | Calculates each pricing range separately and sums the results           | 8 × 17 = 136 | 10 × 17 + 47 × 14 = 828 | 10 × 17 + 90 × 14 + 100 × 12 + 21 × 10 = 2840 |
| [**Flat Unit Price per Range**](#flat-unit-price-per-range) | Returns a fixed price based on the matched quantity range               | 17           | 14                      | 10                                            |

### Default Pricing

This is the default behavior of the Cost Calculator. The value entered by the user is passed directly to the formula field without any modification.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FLHs340VhSGhMsHyJ3qvx%2Fimage.png?alt=media&#x26;token=654e271e-6ca2-4f3b-aee0-6ae3117f793e" alt=""><figcaption></figcaption></figure>

#### Example

If the user enters 71, the formula receives 71.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FeawBC3gWx2S6AIjwjpOO%2Fimage.png?alt=media&#x26;token=17eaf453-6294-44e8-b2b1-b22c4e4536df" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Use **Default** pricing when no quantity-based pricing logic is required, and calculations are handled entirely inside the formula.
{% endhint %}

### All Units Pricing

This option applies a single unit price to all selected units within a range. You define quantity ranges and assign a unit price for each range. Once a range is matched, all units are multiplied by the unit price of that range.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FNon06QRhKmiaPa0biWET%2Fimage.png?alt=media&#x26;token=2181e948-6f7f-44d7-adb7-c70cad7fa8cf" alt=""><figcaption></figcaption></figure>

#### Example

Let's set the pricing range like that:

* From 0 to 10 with a unit price of 17
* From 11 to 100 with a unit price of 14
* From 101 to 200 with a unit price of 12
* Rest, from 201 to 250 with a unit price of 10

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FzV0RxRYey0T4HEBSuCFD%2Fimage.png?alt=media&#x26;token=c078b3f1-616b-455a-a510-a090aa81cd44" alt=""><figcaption></figcaption></figure>

Here are the results. Switch tabs to check the difference:

{% tabs %}
{% tab title="Input 8" %}
User enters **8.** It matches the first range.\
Final value is **8 × 17 = 136**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FxIkZFsSf8KvjEwhabmc2%2Fimage.png?alt=media&#x26;token=269e524a-f0b2-4921-b2b1-7e8e5037ca90" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Input 57" %}
User enters **57**. It matches the **second** range.\
Final value is **57× 14 = 798**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Feq4V1WIc76OFfcuNQc08%2Fimage.png?alt=media&#x26;token=7eafb8a6-3aa6-4a5f-839b-185eca9f556b" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Input 221" %}
User enters **221.** It matches the **last** range.\
Final value is **221 × 10 = 2210**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F8LGpMYvy0iWj6up0lnGq%2Fimage.png?alt=media&#x26;token=e90c5cd2-b7e7-4e83-bc2a-55ba0d4a614a" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="success" %}
Use this option when you want bulk discounts where all units get the same price once a quantity threshold is reached.
{% endhint %}

### Tiered Pricing

This option applies different prices to different portions of the quantity. Each range has its own unit price and is calculated independently. The final value is the sum of all tier calculations.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FeZN3KlEyFOau7FKQQxM4%2Fimage.png?alt=media&#x26;token=bdf98f27-1cd0-4080-a921-63dffaf196ef" alt=""><figcaption></figcaption></figure>

#### Example

Let's set the pricing range like that:

* From 0 to 10 with a unit price of 17
* From 11 to 100 with a unit price of 14
* From 101 to 200 with a unit price of 12
* Rest, from 201 to 250 with a unit price of 10

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FCRrcn8mB7WNzJ6lrSdjO%2Fimage.png?alt=media&#x26;token=d0c8e1d3-5a6b-438f-adc1-ead2130c0794" alt=""><figcaption></figcaption></figure>

Here are the results. Switch tabs to check the difference:

{% tabs %}
{% tab title="Input 8" %}
User enters **8.** All units fall into the first range:\
Final value is **8 × 17 = 136**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FvJt4Svw9JJ1Muizom5I4%2Fimage.png?alt=media&#x26;token=85b156a1-5d4d-43d8-b9f9-9ad29dbe9409" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Input 57" %}
User enters **57**.&#x20;

* First 10 units → **10 × 17 = 170**
* Next 47 units → **47 × 14 = 658**

Final value is **170 + 658 = 828**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Fm3Qjt6WOMDGwuw0I8g4d%2Fimage.png?alt=media&#x26;token=665a92fd-0d6e-41d5-b9e4-88213134f776" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Input 221" %}
User enters **221**

* First 10 units → 10 × 17 = 170
* Next 90 units → 90 × 14 = 1260
* Next 100 units → 100 × 12 = 1200
* Remaining 21 units → 21 × 10 = 210

Final value is the sum of all: **2840.**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FEqv3UgVlQrUfIeykhr0N%2Fimage.png?alt=media&#x26;token=1e434295-7863-4ff5-bf0f-28347175308f" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="success" %}
Use Tiered Pricing when pricing must gradually decrease as quantity increases rather than switching all units to a lower price.
{% endhint %}

### Flat Unit Price per Range

This option assigns a fixed value when the entered quantity falls within a specific range. Instead of multiplying units, the calculator returns a predefined flat value for the matched range.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FV7SXpaOHQuqPUKYf5Zjz%2Fimage.png?alt=media&#x26;token=c4a9dd0c-e440-4103-90d7-b9f953194ceb" alt=""><figcaption></figcaption></figure>

#### Example

Let's set the pricing range like that:

* From 0 to 10 with a unit price of 17
* From 11 to 100 with a unit price of 14
* From 101 to 200 with a unit price of 12
* Rest, from 201 to 250 with a unit price of 10

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FKjdh4CCiKtbNfb1OVJmV%2Fimage.png?alt=media&#x26;token=24eec5fd-3ff0-4f5f-a533-9ba41d6f29b1" alt=""><figcaption></figcaption></figure>

Here are the results. Switch tabs to check the difference:

{% tabs %}
{% tab title="Input 8" %}
User enters **8.** All units fall into the first range:\
Final value is **17.**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FxIkZFsSf8KvjEwhabmc2%2Fimage.png?alt=media&#x26;token=269e524a-f0b2-4921-b2b1-7e8e5037ca90" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Input 57" %}
User enters **57**. Matched range is 11 to 100:\
Final value is **14.**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FOD7ypOiWblK5QFsaECJe%2Fimage.png?alt=media&#x26;token=c97224ac-7cd9-4a24-a419-ad0a11f28065" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Input 221" %}
User enters **221.** Matched range is 201 to 25:\
Final value is **10.**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FC2UKS0ZWUNWpbzb85mLU%2Fimage.png?alt=media&#x26;token=03cbe8c0-9457-43dd-b639-7c410e1303f4" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="success" %}
Use this option when pricing is not dependent on unit count and only the selected range matters.
{% endhint %}

## Example for Using Basic Slider Element

We will show an example of using a range element to calculate the ideal weight. The calculators will have fields to input age, height, gender, and formulas. We will use a range element for users to choose their height.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FJ0SesqRb1V8GoZp1TXO0%2Fimage.png?alt=media&#x26;token=55e455ae-780d-47aa-9142-f4390aeda4ff" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Pay attention to the **Maximum Range Value** and **Range Default Value**. The Default Range Value cannot be higher than the Maximum Range Value.
{% endhint %}

That is how the calculator will look on the user page:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FcZ9sReOjDLzbjFulUdI9%2Fimage.png?alt=media&#x26;token=de63701e-e96a-4508-9dfa-bed30e06c60f" alt=""><figcaption></figcaption></figure>

You can set up **Multiply (cost per value)** when you want the value a user inputs to multiply for the cost. For example, if you offer scooters for rent for 1.5 USD/ an hour. The values will multiply by 1.5 to calculate the fees for the rent.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FmEsGMA362bulvlGWG8lo%2Fimage.png?alt=media&#x26;token=360aaefe-1d81-4b39-819d-fba91e1227e5" alt=""><figcaption></figcaption></figure>

That’s how it will look on the user’s page.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FPSXCjARGn4pt9g1Ao2o0%2Fimage.png?alt=media&#x26;token=2dc5936c-0cd8-4bb8-a5f2-4402d04c562d" alt=""><figcaption></figcaption></figure>

[^1]: r.g 7, 000, 000 (seven millions)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/cost-calculator-builder/calculator-elements/range-button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
