# Step 4: Configure Coding

#### **Code frame structure:**

* **Flat** (default) — Single-level codes (1, 2, 3, ...)
* **Hierarchical** — Nested codes with sub-codes (1, 1.1, 1.2, 2, 2.1, ...)
  * If selected: choose max depth (2-5 levels) and sub-code format (numeric "1.1" or alphanumeric "1A")

**Code generation strategy (choose one):**

<div align="left"><figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2FQYtKE16IuM10LM3MR0Oe%2Fimage.png?alt=media&#x26;token=e6af1725-a465-4ffe-b983-59524e4e5eb4" alt="" width="375"><figcaption></figcaption></figure></div>

#### Special codes:

* Include "Other" — Adds a catch-all "Other" code for responses that don't fit any category
* Include "None" — Adds a "None of the above" code

#### Multi-coding:

* Allow multiple codes per response (toggle)
  * When OFF: Each response gets exactly 1 code
  * When ON: Choose max codes per response (2-10)
  * Use this when responses cover multiple themes

#### Code numbering:

For each question, you can set where code numbering starts:

* If the question has pre-coded options (e.g., a multiple choice question with 8 options), the system auto-sets the start number to 9 (after the pre-codes)
* You can adjust this manually — useful when your analysis tool expects specific numbering
* The input only accepts positive whole numbers (minimum 1)

<div align="left"><figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2FIsZSB3hxzw5BCEKHFgIS%2Fimage.png?alt=media&#x26;token=4ab45924-37bd-4b7e-b032-33c52aecdf2f" alt="" width="375"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2FMEA9vBw8i8DqfzkQTXnb%2Fimage.png?alt=media&#x26;token=96816b1c-ceca-41fa-879f-62246e69bb46" alt="" width="375"><figcaption></figcaption></figure></div>

Generate Code Frames when ready. The AI generates codes for each question — **this may take a minute.**

<div align="left"><figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2FWiHxiPok2DJGi7HoZkBo%2Fimage.png?alt=media&#x26;token=63c4d872-1095-4688-b349-11f6497e4123" alt="" width="375"><figcaption></figcaption></figure></div>
