# Button

✨ [Demo store](https://optis-product-options-variant.myshopify.com/products/button?variant=51025989140758)

### 1. How Does the Button Display?

The Button option displays as a group of clickable buttons that users can select with a single click. Each value appears as a button, making it easy to visualize and choose. This layout is ideal for selections like size, material, or service add-ons.

Example of how it appears on a product page:

* A product with Button options for choosing “Small”, “Medium”, or “Large”.

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

### 2. How to Create a Button

**Step 1: Add a New Option**

* Click Add Option > Swatch to create a new option

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc6cIJq64-yeA2BV9D_aTD5n-cB5AF5nKW_H7C697-HHbt3ilvESQvkcUIr4GF74h5Ax72S2jE_ix2MTcdEY2_6iZHwtKlSeB7NncXysfYf-ykDP0G-g-GIbewWg3SX-9Ap2w5Rgw?key=DC83dM0yOWsDjpoRFQoUWeuE" alt=""><figcaption></figcaption></figure>

**Step 2: Add information to the Button**

* Enter an option name for the Button (e.g., "Select Size")
* Add the option values (e.g., Small, Medium, Large).

<figure><img src="/files/Qier1ZfOZoCOQGASdyB7" alt=""><figcaption></figcaption></figure>

* Tick on “This option is required” if you want customers must choose the option before checking out.
* Tick on "Hide option name” if you don’t want to show the option name above the option values.<br>

Other features:

* Price Add-On > Create Fee – [What is it & How to Use](https://www.youtube.com/watch?v=5Bq4t0IrVEU)
* Price Upsell product > Assign to Variant – [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 3: Advanced Settings (If Needed)**

{% hint style="success" %}
**Conditional Logic:** Enable conditional logic if you want the Button to show/hide only when a customer selects a specific option from another field. [How to set up Conditional logic?](https://optis-options-helpdesk.crisp.help/en/article/how-to-set-up-conditional-logics-1dgigop/)
{% endhint %}

{% hint style="success" %}
**Help text:** Add a short description to explain the purpose of the Button option. It can be displayed as Tooltips or Content (Below/Beside the option title, Below the option).
{% endhint %}

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

{% hint style="success" %}
**Default value:** Pre-select the Button options every time the customer goes to the site. It can save time for customers by providing common or expected choices.
{% endhint %}

Example: You want the option value “S” on Size to be selected automatically when customers enter the product page.

<figure><img src="/files/jmoBfMDiiP7J5LUxfqQP" alt=""><figcaption></figcaption></figure>

How it looks like in your storefront:

<figure><img src="/files/dwAL1KYRv5noFNAuOnEv" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Limit selectors: You can set Min/Max option value that customers can select.
{% endhint %}

<figure><img src="/files/guRWUCxtGxyZrGof28mA" 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 Button option works correctly.

### 3. Real-World Applications of Button&#x20;

* Sizes: Small, Medium, Large
* Materials: Leather, Canvas, Suede
* Extras: Add Dust Bag, Add Gift Note
* Customization: Choose Frame Color, Add Logo, Pick Layout

### 4. Key Features of Button&#x20;

* The Button let users choose only one option from a predefined list, ensuring clear, exclusive selections. When displaying many option values, they can be arranged in a single line or inline layout to save space and maintain a clean, organized design.<br>

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


---

# 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.optis.me/product-options/18-option-types/swatch-and-button/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.
