> 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>
