我正在寻找某种插件,能够将特定线程(或者如果更好的话,特定类别)中的评论转换为表单提交,这样用户只能通过预定义的字段进行提交。本质上,这是一个类似 Google 表单的插件,用户无法自由评论线程,而是需要填写一个简短的表单,然后内容会按照该结构填充到线程中。有这样的插件吗?如果有,它叫什么名字?或者该如何实现这一功能?谢谢!
In my opinion, the Typeform onebox is the best way.
-
Create a form in Typeform
-
Paste the form link in your new topic
Example: the link to https://templates.typeform.com/to/zvlr4L becomes:
Would this populate in a particular thread? Or would it go to backend only? Like an excel sheet or something
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.
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).
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.
https://meta.discourse.org/t/topic-templates
This one? I’m not sure I get it exactly after reading through…
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?
Start a new post here, and select marketplace. You’ll then see how it auto-populates the composer.
Oh snap that’s perfect. How do I install/set that up, exactly? Just in basic discourse admin?
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.
Just the category level. There is the canned-replies plugin, but it works only for admins.
So basically there is no existing plugin for thread-level auto-population?
No such feature exists, no.
That’s what I was looking for. Thanks!
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?
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
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.
我们现在可以通过 Introducing Experimental Form Templates 原生支持了
