# Setting Form Templates with a tag

**URL:** https://meta.discourse.org/t/setting-form-templates-with-a-tag/283112
**Category:** Feature
**Tags:** tags, form-templates
**Created:** [October 19, 2023, 2:06am UTC](https://meta.discourse.org/t/setting-form-templates-with-a-tag/283112 "2023-10-19T02:06:38Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [January 12, 2024, 8:44pm UTC](https://meta.discourse.org/t/setting-form-templates-with-a-tag/283112/3 "2024-01-12T20:44:10Z")

</div>

Hello, esteemed forum members! 👋

I’d like to propose an additional feature - linking templates to tags:

**1) Adding a template to the reply editor for a specific topic using a tag**.  
Regardless of whether a template is linked to a category or not, linking templates to tags would provide forum administrators with more flexibility in selecting topics where a response template is required.  
**Example:** Suppose I, as a forum administrator, don’t want to use templates for an entire category but want people to strictly follow a template when responding to a specific topic (e.g., the “Introduce Yourself” topic) within a particular category. To achieve this, I would add a tag to the topic (e.g., `tag-about-me`), which is accessible only to administrators. This tag would add the template to the reply editor for that topic.  
(_I understand that currently, template forms are not supported in the reply editor, but it would be a great solution to make templates available for responses through tags._)

**2) Adding a template to a personal message using a tag**.  
Unlike the previously mentioned first point, adding a tag to a personal message should add a template to the editor of the first post, not the reply editor (similar to adding a template when selecting a category).  
Sometimes, there is a need to apply templates to personal messages for contacting staff or bots (e.g., [chatbot](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652) by @merefield or Discobot). For such cases, applying a template with a tag would provide forum administrators, especially those using AI plugins, with greater flexibility.  
**Example:** As an administrator, I add a link with a tag in a public topic (e.g., `https://mysite.com/new-message?username=chatbot&title=congratulate%20a%20relative&` **tags=tag-congratulate** ). When clicked, it would open the message editor for a personal message to the `@chatbot` with the corresponding tagged template:

> ![image](https://global.discourse-cdn.com/meta/original/4X/6/c/9/6c9bc9c28b53ddae0cf57ee3de9e0d7b724dd950.png)

Here’s an illustration of the proposed tag feature in the settings under `/admin/customize/form-templates/#`:

> **Summary**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/f/2/e/f2e458ac7ba246f1320abc4122003dd2d7c42185.png)

And here’s an illustration of the proposed tag feature on the page listing templates under `/admin/customize/form-templates`:

> **Summary**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/e/d/e/ede6e1f1ffeed2305e0884d5ee088cf88aa53bad.png)

P.S. I’m not a programmer, so if I missed any technical details in my post, please don’t judge me too harshly. 🙏

---

_[View the full topic](https://meta.discourse.org/t/setting-form-templates-with-a-tag/283112)._
