> For the complete documentation index, see [llms.txt](https://pb-apps.gitbook.io/lool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pb-apps.gitbook.io/lool/how-to/how-to-automatically-hide-the-select-lenses-button-when-i-select-a-specific-variant.md).

# How to automatically hide the Select Lenses button when I select a specific variant

## 1. Create 2 product's metafields

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

### 1.1 Auto Trigger LOOL Collection Key

Namespace and key -> lool.autoTriggerCollectionKey

Type -> Single line text

Storefronts access -> Read

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

### 1.2 Auto Hide LOOL Variants

Namespace and key -> lool.autoHideVariantIds

Type -> Single line text

Storefronts access -> Read

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

## 2. Goto the product page and finish the configure

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

The Medium's variant id is 41743364587697, so the select lenses button will be hidden when you select the Medium variant on product page, If you want to configure multiple variants, just separate the variant IDs with commas

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://pb-apps.gitbook.io/lool/how-to/how-to-automatically-hide-the-select-lenses-button-when-i-select-a-specific-variant.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
