# 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: 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://pb-apps.gitbook.io/lool/how-to/how-to-automatically-hide-the-select-lenses-button-when-i-select-a-specific-variant.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.
