# Jumps 101

We created a playground project called [**EC5 Jumps 101**](https://five.epicollect.net/project/ec5-jumps-101) for anyone to explore and experiment with jumps logic. The form structure is straightforward, asking for a person’s **Name** and **Sex**. We designed the form to display a different follow-up question based on the selected sex or skip follow-ups entirely if the user prefers not to disclose that information.

<figure><img src="https://3293478884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F32OIF30CgrNUuRY6IjkW%2Fuploads%2FJ4OVEJiA8upj1cBdu9jm%2Fjumps-1.jpg?alt=media&#x26;token=c6203edf-2808-433f-a118-7dcbfb9b56c3" alt=""><figcaption></figcaption></figure>

#### Form Setup Details:

* The **Sex** question is set as **required**, ensuring users cannot skip it.
* Available answers: **MALE**, **FEMALE**, **PREFER NOT TO ANSWER**.

#### Jump Logic Configuration:

1. **If the user selects MALE:**
   * No jump is needed because the next question is already the **MALE-only follow-up question**.
2. **If the user selects FEMALE:**
   * We add a jump to the **FEMALE-only follow-up question**, effectively skipping the **MALE-only follow-up question**, which should not be asked to female users.
3. **If the user selects PREFER NOT TO ANSWER:**
   * We add a jump directly to the **End of the Form**, as no further questions are needed.

<figure><img src="https://3293478884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F32OIF30CgrNUuRY6IjkW%2Fuploads%2FwGwNz48CtsTmcjQUtfkP%2Fjumps2.jpg?alt=media&#x26;token=c25079b6-a6e8-487d-bc4a-523b36ad5846" alt=""><figcaption></figcaption></figure>

#### Resolving a Logical Flow Issue:

We noticed a small issue in the form flow:

* After selecting **MALE** and answering the **MALE-only follow-up question**, the user was still presented with the **FEMALE-only follow-up question**, which was unintended due to the standard form flow.

**Solution:**

To fix this, we added a jump on the **MALE-only follow-up question** to **always** jump to the **End of the Form** after it is answered. This adjustment skips the **FEMALE-only follow-up question**, ensuring the intended logic flow.

<figure><img src="https://3293478884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F32OIF30CgrNUuRY6IjkW%2Fuploads%2Fjtsn4TeUifunX9msUU0d%2Fjumpos3.jpg?alt=media&#x26;token=c8c4434d-d4a3-418f-994f-58e358f442e5" alt=""><figcaption></figcaption></figure>

#### Final Outcome:

With this correction, the form now follows the proper logic, asking only relevant questions based on the user’s input while skipping unnecessary ones. This streamlined experience improves data collection accuracy and enhances user experience.
