# Color Picker

The **Color Picker** option type allows customers to select a color from a predefined palette or a color spectrum, including RGB, HSL, and Hex. This option is commonly used for products that offer color customization, such as clothing, accessories, or home decor items.

👉You can check out our [Demo product](https://avis-demo.avisplus.io/products/unlimited-options) to see how it works

***

## Basic **option settings:**

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

#### **1. Option Name**

This is the internal name for the Color Picker option within the app’s settings. It helps you manage and organize the option but does not appear on the storefront product page.

#### **2. Label on Product**

This is the text that appears above the Color Picker on the product page. It provides context or instructions for the customer, such as "Select your preferred color" or "Choose a color for your item."

#### **3. Label on Cart**

This is the text that appears on the Cart summary screen, Checkout, and Order detail page, next to the color selected by the customer. It ensures the selected color is clearly displayed with their order details, such as "Color: Red."

#### **4. Required Field**

This setting ensures that the customer must select a color before proceeding with their purchase. If enabled, the Color Picker becomes mandatory.

#### **5. Hide "Label on Product"**

This option allows you to hide the label that typically appears above the Color Picker on the product page, simplifying the interface if the label is unnecessary.

#### **6. Add-On Product**

This feature allows you to apply an additional charge based on the color selected. For example, choosing a custom or premium color might incur an extra fee.

#### **7.** One time charge

This setting allows you to modify how additional charges are applied to a specific option value. Normally, the extra charge for an option is multiplied by the quantity of the product purchased (e.g., an additional charge of $10 would become $50 if the quantity is 5). However, by enabling the "One time charge" feature, the extra charge will only be added once, regardless of the product quantity. This is useful when you want to apply a flat fee for certain options without scaling the charge with the number of items purchased.

#### **8. Default Value**

This setting allows you to pre-select a default color in the Color Picker, which will be displayed when the customer first views the product. Customers can change this selection if they prefer a different color.

#### **9. Conditional Logic**

This feature allows you to set rules that determine when the Color Picker should be shown or hidden based on other customer selections. For instance, the Color Picker might only appear if the customer selects a product variant that offers color customization.

{% hint style="info" %}
[How to set up Conditional logic for your options](https://options-docs-v2.avisplus.io/app-features/conditional-logic-option-b-shows-if-option-a-is-selected)
{% endhint %}

***

## **Advanced option settings:**

<figure><img src="/files/9zWCNKEBcBkeU5fvwjtP" alt=""><figcaption></figcaption></figure>

#### **1. Tooltip**

This setting allows you to provide additional information in a pop-up message when the customer hovers over the information icon. It provides brief, contextual information without cluttering the interface.

#### **2. Help Text**

This setting displays directly beneath the Text option, offering more detailed explanations or instructions. It remains visible as users interact with the form, providing ongoing support and clarity.

#### **3. Class Name**

This setting allows you to assign a custom CSS class to the Color Picker. This enables you to apply specific styling or behavior to the field based on your design needs.

**4. Price display type**

Decide whether to **show or hide** the additional price on the slider interface.


---

# 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://options-docs-v2.avisplus.io/option-types/all-option-types/color-picker.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.
