> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.noteforms.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to add some logic to my form?

> ⚠️ Form logic is only available to users with a **Pro** or **Team** subscription.

Form logic lets you build **smart, dynamic forms** that react based on user input.  
In **NoteForms**, each field can have its own logical behavior and respond automatically to conditions you set.

---

## ⚙️ Available Logic Actions

You can trigger **four types of actions** when a condition is met:

* 🙈 **Hide field**  
* 👀 **Show field** (if it was previously hidden)  
* ✅ **Make field required**  
* 🚫 **Make field optional**

Each field can have its own conditions and actions.  
Building conditions works similarly to creating **filters in Notion**.

---

## ✨ How to Add Logic to a Field

1. Open your **form editor**.  
2. Open the settings for one of your fields (click on the **blue cog icon**).  
   ![](https://storage.crisp.chat/users/helpdesk/website/5d91dadd0b88a000/image_mk7gmo.png)
3. In the opened modal, click the **Logic** tab.  

![](https://storage.crisp.chat/users/helpdesk/website/-/5/d/9/1/5d91dadd0b88a000/chromevlrkiyfhmz_1ouewwk.png)


![](https://storage.crisp.chat/users/helpdesk/website/-/5/d/9/1/5d91dadd0b88a000/chrometb5rkq42sw_llu645.png)

4. Define your **conditions** and **actions**.  

![](https://storage.crisp.chat/users/helpdesk/website/-/5/d/9/1/5d91dadd0b88a000/chromecyy5ze3hiv_12gr09o.png)


![](https://storage.crisp.chat/users/helpdesk/website/-/5/d/9/1/5d91dadd0b88a000/chromem7xbujejjo_1sl4qj7.png)

5. Click **Publish** on the upper right of the page.

Your form will now behave dynamically based on user responses. 🎉  

📽️ **Watch this short video example:**  
${youtube}[](x4TBmr2e9YM)

---

## 📅 Date Logic Conditions

Date logic lets you create **time-sensitive rules** based on how recent or upcoming a selected date is — perfect for forms related to deadlines, events, or scheduling.

![](https://storage.crisp.chat/users/helpdesk/website/-/5/d/9/1/5d91dadd0b88a000/chromeauk6apwdnu_l4supn.png)


### ⏰ Available Date Logic Options

| Condition | Description | Example |
| ---- |
| **At Least X Days Ago** | Triggers when the date is X or more days in the past. | “At least 7 days ago” → matches anything older than a week. |
| **At Least X Days From Now** | Triggers when the date is X or more days in the future. | “At least 7 days from now” → matches anything a week or more away. |
| **Within Past X Days** | Triggers when the date falls within the last X days, including today. | “Within past 7 days” → matches dates from last week through today. |
| **Within Next X Days** | Triggers when the date falls within the next X days, including today. | “Within next 7 days” → matches today through next week. |

### 💡 Example Use Cases

* ⚠️ Show a “Late Submission” warning for dates more than 30 days in the past.  
* 📝 Require additional information for events happening within the next 7 days.  
* 🚫 Hide certain options for events too far in the future.  

Date-based logic makes it easy to build **time-aware forms** that automatically adapt based on selected dates.




Please check the video below.



${youtube}[](x4TBmr2e9YM)


