# Add different buttons in the same reply template

**URL:** https://meta.discourse.org/t/add-different-buttons-in-the-same-reply-template/279137
**Category:** Feature
**Tags:** reply-template
**Created:** [September 15, 2023, 11:22am UTC](https://meta.discourse.org/t/add-different-buttons-in-the-same-reply-template/279137 "2023-09-15T11:22:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)
#### Post date: [June 1, 2022, 12:21am UTC](https://meta.discourse.org/t/add-different-buttons-in-the-same-reply-template/279137/1 "2022-06-01T00:21:58Z")

</div>

I love this and I think it may help a lot with running classes where I have people answer reflection questions or even as a pseudo form.

One thing I want to explore is if people can reply directly to the post’s author with a PM without having to type the recipient’s name. In this way, I could post an exercise or drill and then people could reflect privately to me using the template, which in some scenarios I may love. I could also provide the same template but with two different buttons, where they can reply publicly in the topic or privately in a PM to me (or the author).

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/6/e/86e73f3c7c395e245010182fc253908c98e296f6.png)

I know it’s not that hard for people to add a recipient in the PM composer, I just wonder, would it be easy to add an option for something like `create_pm_reply` or something that will go directly to the author of the post to which one is replying?

---

<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: [September 15, 2023, 11:22am UTC](https://meta.discourse.org/t/add-different-buttons-in-the-same-reply-template/279137/2 "2023-09-15T11:22:35Z")

</div>

Greetings, dear forum participants and Discourse administration!  
I wanted to ask. Is there any command to create a second button using the same template. For example, a user could use one template at his own discretion - for a private message or to create a public response.  
Here’s an example:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/3/2/0322a579a1c955a90910f26487e9f892594fe37b.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 18, 2023, 8:34pm UTC](https://meta.discourse.org/t/add-different-buttons-in-the-same-reply-template/279137/3 "2023-09-18T20:34:07Z")

</div>

> [@Aizada\_M](#):
>
> I wanted to ask. Is there any command to create a second button using the same template.

I like the idea, but I don’t think this can be done with the Reply Template theme component. The theme component creates the button automatically for you and doesn’t supply any place that a second button could be added. You will need to add two reply templates to the topic in order to get close to what you are looking for.

> [@jimkleiber](#):
>
> One thing I want to explore is if people can reply directly to the post’s author with a PM without having to type the recipient’s name.

I realize this is an old question, but the topic was bumped a few days ago. I’m not sure where things were at in May 22, but you can now add either a list of one or more users to send the PM to by using either the `recipients` or `usernames` parameters: [Reply Template](https://meta.discourse.org/t/reply-template/162373).

---

<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: [September 19, 2023, 6:58am UTC](https://meta.discourse.org/t/add-different-buttons-in-the-same-reply-template/279137/4 "2023-09-19T06:58:41Z")

</div>

> [@simon](#):
>
> You will need to add two reply templates to the topic in order to get close to what you are looking for.

Yes, that’s what I’m doing for today. But when there are many templates, informational noise is created. I wanted to solve this in a more delicate way(

> I realize this is an old question, but the topic was bumped a few days ago. I’m not sure where things were at in May 22, but you can now add either a list of one or more users to send the PM to by using either the `recipients` or `usernames` parameters: [Reply Template](https://meta.discourse.org/t/reply-template/162373).

Yeah, I understand, it turns out that usernames should be written separated by commas or is it sufficiently separated by spaces?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 19, 2023, 3:21pm UTC](https://meta.discourse.org/t/add-different-buttons-in-the-same-reply-template/279137/5 "2023-09-19T15:21:50Z")

</div>

> [@Aizada\_M](#):
>
> I understand, it turns out that usernames should be written separated by commas or is it sufficiently separated by spaces?

Usernames need to be separated by a comma, with no space after the comma. For example:

```plaintext
usernames="sally,Ben"

```
