# 表单提交插件？

**URL:** https://meta.discourse.org/t/form-submission-plugin/80634
**Category:** Feature
**Tags:** completed
**Created:** [2018年二月15日 15:54 UTC](https://meta.discourse.org/t/form-submission-plugin/80634 "2018-02-15T15:54:48Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 15:54 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/1 "2018-02-15T15:54:48Z")

</div>

我正在寻找某种插件，能够将特定线程（或者如果更好的话，特定类别）中的评论转换为表单提交，这样用户只能通过预定义的字段进行提交。本质上，这是一个类似 Google 表单的插件，用户无法自由评论线程，而是需要填写一个简短的表单，然后内容会按照该结构填充到线程中。有这样的插件吗？如果有，它叫什么名字？或者该如何实现这一功能？谢谢！

---

<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: [2018年二月15日 16:00 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/2 "2018-02-15T16:00:59Z")

</div>

In my opinion, the Typeform onebox is the best way.

1. Create a form in Typeform

2. Paste the form link in your new topic

Example: the link to `https://templates.typeform.com/to/zvlr4L` becomes:

https://template.typeform.com/to/zvlr4L?typeform-embed=embed-widget

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 16:02 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/3 "2018-02-15T16:02:42Z")

</div>

Would this populate in a particular thread? Or would it go to backend only? Like an excel sheet or something

---

<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: [2018年二月15日 16:05 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/4 "2018-02-15T16:05:14Z")

</div>

Results would be available only in the TypeForm admin area.

Trying to parse Discourse posts into structured data will always be tricky, since Discourse is free form text.

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 16:06 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/5 "2018-02-15T16:06:38Z")

</div>

Gotcha. Yeah what I’m looking for is a way to force structure for certain threads, partially to make the threads easier to read through but mostly to make it easy for people to FOLLOW structure (as opposed to them having to copy/paste and then reformat a written out structure).

---

<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: [2018年二月15日 16:08 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/6 "2018-02-15T16:08:51Z")

</div>

> [@Bri\_Castellini](#):
>
> force structure for certain threads

We do have category Topic Templates, but that’s far from a enforced way, only a suggestion. I can see it working only on very technical audiences.

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 16:11 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/7 "2018-02-15T16:11:43Z")

</div>

[https://meta.discourse.org/t/topic-templates](https://meta.discourse.org/t/topic-templates)

This one? I’m not sure I get it exactly after reading through…

---

<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: [2018年二月15日 16:18 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/8 "2018-02-15T16:18:12Z")

</div>

It’s available in the category edit modal:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/c/bcbc77481b21ac09be0e57056cae712c06b4a802.png)

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 16:19 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/9 "2018-02-15T16:19:16Z")

</div>

Oh interesting. So I could build a form style template and they’d have to manually select it to use it, otherwise it would just be a regular comment? Does that exist in the base Discourse toolbox?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年二月15日 17:24 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/10 "2018-02-15T17:24:10Z")

</div>

Start a new post here, and select #Marketplace. You’ll then see how it auto-populates the composer.

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 19:59 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/11 "2018-02-15T19:59:11Z")

</div>

Oh snap that’s perfect. How do I install/set that up, exactly? Just in basic discourse admin?

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 20:13 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/12 "2018-02-15T20:13:09Z")

</div>

NVM, found it! Is there an option or plugin that allows this in particular threads, or just on a category level? And does it populate in each thread or just new unique posts? What I’m looking for is for that to show up in the comments on a thread versus a new thread itself.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年二月15日 20:58 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/13 "2018-02-15T20:58:19Z")

</div>

> [@Bri\_Castellini](#):
>
> just on a category level

Just the category level. There is the canned-replies plugin, but it works only for admins.

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 20:59 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/14 "2018-02-15T20:59:05Z")

</div>

So basically there is no existing plugin for thread-level auto-population?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年二月15日 21:02 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/15 "2018-02-15T21:02:18Z")

</div>

No such feature exists, no.

---

<div class="post-metadata">

### Author: ![Bri\_Castellini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bri_castellini/32/72071_2.png) [@Bri\_Castellini](https://meta.discourse.org/u/Bri_Castellini)
#### Post date: [2018年二月15日 21:02 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/16 "2018-02-15T21:02:51Z")

</div>

That’s what I was looking for. Thanks!

---

<div class="post-metadata">

### Author: ![JackSnyder](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@JackSnyder](https://meta.discourse.org/u/JackSnyder)
#### Post date: [2019年一月29日 16:57 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/17 "2019-01-29T16:57:55Z")

</div>

Hi Falco, thanks for integrating Typeform onebox. It works, but doesn’t render the same way it renders for me. It renders as a square box that opens a new window instead of how your works as an embed.  
What should I be doing right?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年一月30日 05:21 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/18 "2019-01-30T05:21:49Z")

</div>

Yes, typeform renders a bit differently now, it oneboxes. Not sure if we should have explicit support here, or if an `<iframe>` domain could be whitelisted, or what @falco

---

<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: [2019年一月30日 11:19 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/19 "2019-01-30T11:19:30Z")

</div>

Yeah unfortunately we had to give up on automatic typeform onebox 😥

You can still allow the typeform URL in the iframe setting, and then paste the iframe code in a post.

---

<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: [2023年十月16日 19:22 UTC](https://meta.discourse.org/t/form-submission-plugin/80634/20 "2023-10-16T19:22:23Z")

</div>

我们现在可以通过 [Introducing Experimental Form Templates](https://meta.discourse.org/t/introducing-experimental-form-templates/278631?u=falco) 原生支持了

[下一頁](https://meta.discourse.org/t/form-submission-plugin/80634.md?page=2)
