# Think Hard mode

**Metaforms comes with your very own AI deep-thinker.**

**Think Hard Mode** – a toggle designed for those moments when your survey logic gets truly complex, and you need AI that doesn't just rush through but carefully plans its next move.

## What is Think Hard Mode?

When enabled, **Think Hard Mode** lets Metaforms’ AI slow down and reason through the most challenging parts of survey programming — giving you more structured, reliable, and production-ready outputs.

You'll find the toggle inside the **Generate / Edit with AI** panel in your XML editor.

## When to Enable Think Hard Mode:

Use it when working with:

* **Complex multi-question validations**\
  e.g. multiple interdependent rows requiring unique logic
* **Advanced styling/scripting tasks**\
  e.g. inserting JS/CSS for layout refinements or conditional hiding
* **Nested loops or hidden logic layers**\
  e.g. MaxDiff, Conjoint, or any repeated structure with conditional display
* Any other complex scenarios where you think there needs to be deeper thinking.

## Think Hard Mode in Action

A Before/After example of using Think Hard Mode for a MaxDiff Question to help you understand it's power.

**Without Think Hard Mode**

The AI focuses on getting you a quick structure — but may miss advanced validation or styling nuances.

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2FtMtd321pvIRcUejGfhBJ%2Fimage%20(4).png?alt=media&#x26;token=4f8b2214-4707-444b-8133-6df4d1c57635" alt=""><figcaption></figcaption></figure>

**With Think Hard Mode**

Notice the difference — deeper validations, cell-level JS customizations, and structured loop logic ready for live deployment.

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2F8e7FFC1Cw2IirYdCePio%2Fimage%20(5).png?alt=media&#x26;token=dc4beb4f-74cc-4517-8acc-25f892f84df9" alt=""><figcaption></figcaption></figure>

## Where to Find It?

1. Navigate to any question in your **XML tab**
2. Click **Generate/Edit with AI**

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2FC1SJwb2M2KO3pTR6mSJs%2FScreenshot%202025-06-26%20at%203.07.42%E2%80%AFPM.png?alt=media&#x26;token=88c786cb-a17d-492f-aea1-79c63a9e8734" alt=""><figcaption></figcaption></figure>
