# Hidden field

The **Hidden Field** option type is used to include data that isn’t visible to customers on the product page but appears in the cart and order details. This is useful for adding hidden information or metadata that doesn’t require customer interaction but needs to be tracked through the purchasing process.

***

## **Basic** Option Settings:

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

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

This is the internal name used within your app to identify the hidden field. It helps keep your options organized during setup but won’t be shown to customers.

#### **2. Label on Cart**

This label will appear next to the hidden field’s value in the cart summary, checkout, and order details, helping to identify the hidden information.

#### **3. Default Value**

This is the preset value that will automatically be included with the hidden field. It’s useful for consistently applying certain data across all orders without customer input.

#### **4. Conditional Logic**

Allows the hidden field to be applied only when specific conditions are met, based on other customer selections. This is useful for dynamically adding hidden data when certain criteria are fulfilled.

{% 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/UIHoIM0qAviLbVxcQkNf" alt=""><figcaption></figcaption></figure>

#### **1. Class Name**

Assigns a custom CSS class to the hidden field, allowing for specific styling or behavior management in the cart or order details.


---

# 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/hidden-field.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.
