In this tutorial video titled "How to Use Conditional Inputs," you will learn how to effectively implement conditional inputs within your PromptForm application. The video demonstrates the process of reorganizing your user interface to minimize clutter by incorporating optional feature instructions that only display when needed. Specifically, the video showcases adding a checkbox input that when selected, reveals additional input options. By following the step-by-step instructions, you can enhance your app's user experience by making conditional inputs available.


Topics Covered:

1. Introduction to Current UI:

  • Overview of the existing user interface with numerous fields.

2. Objective of Using Conditional Input:

  • Explanation of why making some options conditional can improve the clarity and functionality of the UI.

3. Adding a Checkbox Input:

  • Adding a new input field, named record audio, for the user to decide if they want additional instructions.

4. Setting Input Type:

  • Setting the input type to "option," specifically configuring it as a checkbox.

5. Defining Checkbox Option:

  • Creating a single checkbox option, "Yes, I do want to record input."

6. Reordering Inputs:

  • Positioning the new checkbox input above the additional instruction fields.

7. Implementing Display Conditions:

  • Linking the conditional display of additional instructions to the state of the new checkbox input.

8. Final Adjustments and Saving:

  • Renaming input titles for clarity and saving the configurations.
  • Ensuring that the app works correctly after applying the changes.


By following these topics, you will be able to implement and manage conditional inputs effectively within your PromptForm application, enhancing user interaction and experience.


1. Building Your First App (17:56)
2. Interactive Elements (5:20)
3. Image Generation (4:28)
4. Text to Speech (4:19)
5. Audio & Transcription (5:01)
6. Conditional Inputs (2:38)
7. RAG Documents (7:46)