# Cannot create new posts with categories with form templates installed

**URL:** https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314
**Category:** Bug
**Tags:** perspective-api, form-templates, fixed
**Created:** [June 3, 2024, 7:23am UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314 "2024-06-03T07:23:05Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![hoangphuctran93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hoangphuctran93/32/290976_2.png) [@hoangphuctran93](https://meta.discourse.org/u/hoangphuctran93)
#### Post date: [June 3, 2024, 7:23am UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/1 "2024-06-03T07:23:05Z")

</div>

Recently I installed the experimental form templates

> [@Introducing Form Templates](https://meta.discourse.org/t/introducing-experimental-form-templates/278631/69):
>
> Our CSS changes (so far) In case it’s helpful to someone else: // remove the grey background .d-editor #form-template-form { background-color: var(--secondary); } // stop stretching the fields to 100% width .form-template-field select, .form-template-field input { width: auto; } .form-template-field textarea { min-width: 650px; width: auto; }

feature as reported, but after creating a form for the category, the “create topic” button did not work.  
Do I need to install anything else to enable this feature?

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [June 3, 2024, 8:36am UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/2 "2024-06-03T08:36:47Z")

</div>

> [@hoangphuctran93](#):
>
> Do I need to install anything else to enable this feature?

No as long as you enable the feature in settings, create a template and assign it to a category it’ll work.

Are there any errors in logs and does it occur in [safe mode](https://meta.discourse.org/t/53504?silent=true)?

---

<div class="post-metadata">

### Author: ![hoangphuctran93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hoangphuctran93/32/290976_2.png) [@hoangphuctran93](https://meta.discourse.org/u/hoangphuctran93)
#### Post date: [June 3, 2024, 9:39am UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/3 "2024-06-03T09:39:16Z")

</div>

Thank you, after trying to turn off the plugins one by one, the form template feature is working, they are affected by the “[Perspective Api](https://meta.discourse.org/t/discourse-google-perspective-api-plugin/98733)” plugin, this is an offical plugin, I hope the discourse team can check and correct it.

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [October 26, 2024, 3:45pm UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/4 "2024-10-26T15:45:44Z")

</div>

Yes i second that. Its not working with [Discourse Google Perspective API](https://meta.discourse.org/t/discourse-google-perspective-api/98733)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 31, 2024, 3:56pm UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/7 "2024-10-31T15:56:20Z")

</div>

@hoangphuctran93 / @David_Ghost could you share the following so that I can better diagnose this issue?

- the form template(s) used
- the perspective settings you have changed

If you can manage to reproduce the issue with a minimum of changes, that would be greatly appreciated as well 👍

Thanks

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 31, 2024, 4:10pm UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/8 "2024-10-31T16:10:31Z")

</div>

Nevermind. I’m able to reproduce. Will fix 🔍

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 31, 2024, 5:21pm UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/9 "2024-10-31T17:21:40Z")

</div>

I have a fix in the work

[https://github.com/discourse/discourse-perspective-api/pull/93](https://github.com/discourse/discourse-perspective-api/pull/93)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 4, 2024, 9:41am UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/11 "2024-11-04T09:41:57Z")

</div>

PR is now merged.

---

<div class="post-metadata">

### Author: ![hoangphuctran93](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hoangphuctran93/32/290976_2.png) [@hoangphuctran93](https://meta.discourse.org/u/hoangphuctran93)
#### Post date: [November 4, 2024, 3:19pm UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/12 "2024-11-04T15:19:46Z")

</div>

Thanks, I will reinstall and get back to you with my experience.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 7, 2024, 6:19pm UTC](https://meta.discourse.org/t/cannot-create-new-posts-with-categories-with-form-templates-installed/310314/14 "2024-11-07T18:19:03Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
