# New Topic template form, like GitHub Issue templates?

**URL:** https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452
**Category:** Support
**Created:** [May 30, 2022, 3:52pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452 "2022-05-30T15:52:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mksafi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mksafi/32/244062_2.png) [@mksafi](https://meta.discourse.org/u/mksafi)
#### Post date: [May 30, 2022, 3:52pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452/1 "2022-05-30T15:52:26Z")

</div>

Discourse currently has the Category Template feature, which prefills the Composer. It’s useful, but a nice step up from that could be to have the ability to create a custom New Topic form, with custom fields, driven by a [YAML definition, like the one exists for GitHub Issues](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms).

So something like this…

```yaml
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
  - octocat
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to fill out this bug report!
  - type: input
    id: contact
    attributes:
      label: Contact Details
      description: How can we get in touch with you if we need more info?
      placeholder: ex. email@example.com
    validations:
      required: false
  - type: textarea
    id: what-happened
    attributes:
      label: What happened?
      description: Also tell us, what did you expect to happen?
      placeholder: Tell us what you see!
      value: "A bug happened!"
    validations:
      required: true
  - type: dropdown
    id: version
    attributes:
      label: Version
      description: What version of our software are you running?
      options:
        - 1.0.2 (Default)
        - 1.0.3 (Edge)
    validations:
      required: true
  - type: dropdown
    id: browsers
    attributes:
      label: What browsers are you seeing the problem on?
      multiple: true
      options:
        - Firefox
        - Chrome
        - Safari
        - Microsoft Edge
  - type: textarea
    id: logs
    attributes:
      label: Relevant log output
      description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
      render: shell
  - type: checkboxes
    id: terms
    attributes:
      label: Code of Conduct
      description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com)
      options:
        - label: I agree to follow this project's Code of Conduct
          required: true

```

Translates to something like this…

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/0/a/c0a444d1e3f9c83d7b2db66fdfdcdeab9d273a8d.png)

A much more basic version of this that only supports one field type (i.e. textarea) would still be a very good improvement over the current Category Templates, though!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 30, 2022, 4:19pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452/2 "2022-05-30T16:19:20Z")

</div>

There is this already, any help?:

> [@Placeholder Forms](https://meta.discourse.org/t/discourse-placeholder-forms-theme-component/113533):
>
> discourse2Summary Placeholder Forms will let you build dynamic documentation, by creating a form that replaces any occurrence of a =PATTERN= in your post with the value from a text or selectable input field.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/placeholder-forms)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-placeholder-theme-component](https://github.com/discourse/discourse-placeholder-theme-component)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component …

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [May 30, 2022, 5:18pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452/3 "2022-05-30T17:18:57Z")

</div>

What about Custom Wizard plugin for this.

> [@Custom Wizard Plugin mage](https://meta.discourse.org/t/custom-wizard-plugin/73345):
>
> pavilionSummary Forms for Discourse. This plugin lets you make rich and powerful forms for your Discourse forum. Better user onboarding, structured posting, data enrichment, automated actions and much more for your community.hammer_and_wrenchRepository Link [https://github.com/paviliondev/discourse-custom-wizard](https://github.com/paviliondev/discourse-custom-wizard)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)people_huggingCommunity Community based support and discussions about this plugin are hosted on th…

---

<div class="post-metadata">

### Author: ![mksafi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mksafi/32/244062_2.png) [@mksafi](https://meta.discourse.org/u/mksafi)
#### Post date: [May 30, 2022, 5:45pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452/4 "2022-05-30T17:45:50Z")

</div>

In my experience, the Custom Wizard plugin is not a good solution for this use case. You lose the preview, the suggested topics pop-up, and a few other things. Something that replaces the Composer partially while retaining the overall flow and experience would be a better solution here.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 16, 2023, 7:11pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452/6 "2023-10-16T19:11:28Z")

</div>

Check [Introducing Form Templates](https://meta.discourse.org/t/introducing-experimental-form-templates/278631)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 16, 2023, 7:11pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452/7 "2023-10-16T19:11:36Z")

</div>


