> For the complete documentation index, see [llms.txt](https://docs.optis.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optis.me/product-options/20-option-types/text-input/number-field.md).

# Number Field

### 1. How Does the Number Field Display? <a href="#id-2-1-how-does-the-text-area-display" id="id-2-1-how-does-the-text-area-display"></a>

The Number Field option displays numeric data - such as product dimensions, or custom options like "engraving characters”.

> 📝Note: Customers can only fill in numbers in the Number Field.

Example of how it appears on a product page:

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2Fr4gv5TrUposkU0KZftym%2Fimage.png?alt=media&amp;token=9d881b7b-67d2-4650-97f4-60e703612220" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcaElbq1ocjyNuh9qqZfYVLubElqF7YLJFqnWfh_yktK0WNmZGBv2OZAmDp-gKrX35SEVDpy_zZoBQ5jq2osgzutA3SodnG4Mv_6Uvulga1xnQtTwnPOZ4Jcvfd7zsOZaTZdjpRAw?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

### 2. How to Create a Number Field option <a href="#id-2-2-how-to-create-a-text-area-option" id="id-2-2-how-to-create-a-text-area-option"></a>

**Step 1: Add a New Option**

* Open **1. Add options**, click **Add option**, tick **Number field** under **Text input** on the **New options** tab, then click **Add options**.

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FnGaqznnR0Koevt5envVQ%2Fimage.png?alt=media&amp;token=9e4c27b9-7b1c-4103-bfb6-07eb4181ac6f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FsSg66SpZQAm2HSOZ7hsE%2Fimage.png?alt=media&amp;token=5a29a778-e5b7-4bd3-afb1-2862e152b8b3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdvP_DXNfjPQyGSZNFIN4ZVpEnVMlQ9YfE6-zuh257HNgvEGSksRIgER7odlcQadQliJBUHRJMJEfN8X0C9KTNQs_ZuteMzwyWtu0cs5sgaP8CEGpRqrWrn8vNGLnYOG3cNYvhwIQ?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

**Step 2: Add information to the Number Field**

* Enter the **Label on product** (e.g., “Number of additional gift boxes", "Grade"). Use **Label on cart** if the cart and order should show a different name. Tick **Required field** if customers must fill it in, or **Hide option label** to hide the label.

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2F4tQD4BSY83XvKVY5DmSw%2Fimage.png?alt=media&amp;token=8b846f52-23a1-4ab4-807d-f7c9dc39fa42" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcGA-oF2VjTG5mbCS9_AAGmDhg8KcSsJP65iNJg8h5fJm-nag_CtzehTDvbrV_ubvpmEX79jhUkzkptCQFuOSyCgFazf6fdW-9sCVUw20f0Dr-UnFNvlePILIB1kj0A9fC9MAGT?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

**Step 3: Set the target of Price add-on in Option values (optional)**

* Price Add-on feature will help you add extra fee for options customers choose.

How the Price add-on will look on the storefront:

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FjqEXidjDsjurIzzYLq7h%2Fimage.png?alt=media&amp;token=ca3f9f38-1515-490f-a283-5928ca592275" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcD6n_Enh3_vhbOZUWM_D9V3iNdDqmyqUI4zwDEMh4dX6V0rIR59sTbfCa4FXHVuvVlnJYRwrBuIt-OvPRmdlDC6H3zZ_H9Ka_rxZ00mUd6kOMWg_gsUjJkyikd0PrBM_LVoIhJ7g?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

* If you choose **Extra fee**, see details of this feature in [How to add price to options?](/product-options/advanced-setup/manage-add-on-additional-fee-for-option.md).

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FXRE9uRyYrXWGBuB4W3Uw%2Fimage.png?alt=media&amp;token=28e8cc97-c1c8-4ec9-9dfd-572da01b0df3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXddjK_ETWCwdYbeRxYC0AO1sVoTCkszkLwksKa4BVn0Ekaimz6i60zni6mVeVaNZtomMXRR5r_YFHBhMM9C4uFOFHCoWazud2QuU_wvdO0ESvfZtllepjPQSMdof6qnpNxQx_8WzA?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

* If you choose to Upsell product, follow [this guide](/product-options/advanced-setup/how-to-use-upsell-product-link-stock-and-price-of-shopify-variant-to-option-value.md) for more information.

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2Fwm8ZKerppVW4MvfD2Fe6%2Fimage.png?alt=media&amp;token=bb87a5aa-1d1e-42a7-8fcd-fcfb9dcd9eed" alt=""><figcaption></figcaption></figure>

Other features:

* Price add-on > Extra fee – [What is it & How to Use](https://www.youtube.com/watch?v=5Bq4t0IrVEU)
* Price add-on > Upsell product – [What is it & How to Use](/product-options/advanced-setup/how-to-use-upsell-product-link-stock-and-price-of-shopify-variant-to-option-value.md)
* SKU – [What is it & How to Use](https://www.shopify.com/ca/retail/what-is-a-sku-number)
* Quantity – [What is it & How to Use](/product-options/advanced-setup/how-to-use-the-quantity-feature-for-options.md)

**Step 4: Advanced Settings (If Needed)**

{% hint style="success" %}
**Visibility**: Enable visibility condition if you want the Number Field to show/hide only when a customer selects a specific option from another field. [How to set up Visibility?](/product-options/advanced-setup/how-to-set-up-conditional-logics.md)
{% endhint %}

Example: A “Year” Number field appears only if the customer selects “Yes” for “Are you a student?”

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FulY881QffkEo8IaFQIMM%2Fimage.png?alt=media&amp;token=100b1b8a-861e-40a1-bdac-8e7a8f9ee4d9" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Help text**: Add a short description to explain the purpose of the Number Field option, offering context or clarification when the customer enters the information. Help text can be displayed as Tooltip or Content (Below/Beside the option title, Below the option).
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXftZZ1ZCCt5Yp-TCUnCC6PUPw3_Lg_zD8TvFeDWW4I5fdS7bHsbz8-WpKPJlSO2LrBIC1ygprRXJTXzZunrzboehthEjDhP61qYJJzVh5FQVYIRph5et5XuyNYkIDlrNTTDyOo6cg?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FBLpbgq7IzlkqYz4oKD0n%2Fimage.png?alt=media&amp;token=7a69e316-a7e8-439b-b0af-f65d16c8e262" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Default value**: Pre-fill text inside the Number Field that appears every time the customer goes to the site. It can save time for customers by providing common or expected input.
{% endhint %}

Example: You want the option “Number of additional gift boxes” will display automatically the number 2 in the field when customers go to the product page.

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FP4oD0taEIg2BiU1mm1U5%2Fimage.png?alt=media&amp;token=7f8bae05-5174-4020-8def-bb7636ef3485" alt=""><figcaption></figcaption></figure>

How it looks like in your storefront:

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FCrlLTq4qPRz8M8QinZQM%2Fimage.png?alt=media&amp;token=236c5f28-c3d9-446f-bf0a-c9d26906f11d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfG1dW8ys8IyjS5SdxV5CpVB0OK5hin1sYeA2qk4jDDV9bnBt62VBV-jfm3iFqXxrDt7qrYAKRfEIA2BXBcs9Gs63ApKO42sq-yLvORmuR9L3Vm-AsSpkiqKQfHn6DaNgStvO6a?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Placeholder text:** Display placeholder text inside the Number Field as a faded, lighter color. This text disappears when the customer starts typing and is often used to give customers a clear example of what should be filled in the field.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXelWOX4buLMKbvL2Evm6-CVVxB7-X5JfMfDoHM90XhWExzikjL-40bnHGzwOt1A1l_QSrIbSYhLQFC7ZTWZYqF5VQ_euDHEzIzbsnA9wlgJyjBrSzGWdp6hU7ps7WuYbQIgdLu8Cg?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FGJ6QiiMObJHe7vVk4mAI%2Fimage.png?alt=media&amp;token=0117aa0b-facf-41c4-84ce-590c97b209b0" alt=""><figcaption></figcaption></figure>

Here is an example of how it looks like in your storefront:

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FcchfYQXcezu8nUWLlcrv%2Fimage.png?alt=media&amp;token=c4fad7b3-1f17-4930-a0f0-a2b257fae171" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd6CCF15oBX4y-djCX8xHrJ1s_69PzQ4GIChVaUhiH3_RIv9kFwr08V5zgizuNHOcxxGIdxfMNY8oNFBwUxiuLwpeKxGshmCBABB05NMUHzee3iEGmgzrr8pJ2NttADarui_LqjJA?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Limit value:** Set **Min value** and **Max value** for the number customers can enter.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfNiqzbyh-vH5vkwtVkyUbg7Yh3OfB7xvonetWcDJS6iYCcprNzHZNAesFXbJ3UgpXHY-Ipnxtrcs8IpjDXmpNJch-zJeZ2I5a-c-4KVBlezALk1LeCVSovXsUT8o79jIVp--c5cQ?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FkVCXlIHQiUHVgKJFLeBb%2Fimage.png?alt=media&amp;token=2fcc6576-814c-4d93-909b-59ef26253cfa" alt=""><figcaption></figcaption></figure>

If a customer enters a number below the minimum or above the maximum, a notification message is shown below the field. You can change the wording in **Settings > Translation Texts > Default text customization > Product page** (**Min value** and **Max value**).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeVMyuvEJTTDd45t4NEpwlXEo1yOP696L0VwM8Za7Xu_hS_BXLHCc1G8Wn1pYhbaXwwSU6XCIXg1OicnbfbVbOZXtKYWceYGJ1hH_0aYeL4aYjAZr8WaVanWVAHprtG8x-vQ8Jpog?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FUMQCiQo98VeJ65UeBGqv%2Fimage.png?alt=media&amp;token=940e88d3-0828-412c-bbee-aaa365087c59" alt=""><figcaption></figcaption></figure>

**Step 4: Save and Test**

* Click Save to apply the settings.
* Visit the product page on your store to check if the Number Field works correctly.

### 3. Real-World Applications of Number Field

* Fashion & Accessories: Enter number of characters for engraving, jersey numbers, or custom sizing.
* Food & Catering: Specify number of guests, servings, or meal portions.
* Tech & Electronics: Show battery life, storage size, or power capacity as numeric data.
* Home & Furniture: Display weight, dimensions, or quantity per box.

### 4. Key Features of Number Field

* The Number Field option type prevents invalid input like letters or symbols. They're ideal for quantities, measurements, or custom inputs.
