# خلل في معاينة قوالب النماذج عند استخدام مجموعات العلامات

**URL:** https://meta.discourse.org/t/form-templates-preview-broken-with-tag-group/372744
**Category:** Bug
**Tags:** pr-welcome, form-templates
**Created:** [3 يوليو 2025، 9:38ص UTC](https://meta.discourse.org/t/form-templates-preview-broken-with-tag-group/372744 "2025-07-03T09:38:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [3 يوليو 2025، 9:38ص UTC](https://meta.discourse.org/t/form-templates-preview-broken-with-tag-group/372744/1 "2025-07-03T09:38:51Z")

</div>

- تمكين قوالب النماذج التجريبية
- إنشاء قالب بمحدد مجموعة علامات
- معاينة
- لم يتم ملء العلامات
- لم يتم إغلاق المعاينة

عند _استخدام_ القالب فعليًا في إنشاء موضوع، يتم ملء العلامات بشكل جيد.

أخطاء:

- `TypeError: this.wrapperElement is undefined`
- `Error: VM BUG: Target must be set before attempting to jump`

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [23 يوليو 2025، 1:08ص UTC](https://meta.discourse.org/t/form-templates-preview-broken-with-tag-group/372744/2 "2025-07-23T01:08:00Z")

</div>

@Lhc_fl هل يمكنك إلقاء نظرة على هذا تالياً؟

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [25 يوليو 2025، 2:48ص UTC](https://meta.discourse.org/t/form-templates-preview-broken-with-tag-group/372744/3 "2025-07-25T02:48:03Z")

</div>

لقد حققت في الأمر ووجدت أن السبب هو عدم تنفيذ خطوة مجموعة علامات العملية. يجب أن يحل هذان الطلبان هذا المشكل.

> <https://github.com/discourse/discourse/pull/33848>
>
> The bare template yaml file provided by the user cannot be directly used for for…m templates preview, because components such as \`TagChooserField\` actually rely on a backend process step. This step exists when users actually use the template, but is missing when the admin writes and previews the template.
> 
> This commit supplements the missing process step, thus fixing the problem that tag-chooser may break ember during admin preview

> <https://github.com/discourse/discourse/pull/33850>
>
> The previous form template validator did not detect non-existent tag group names…, which would result in the page being saved normally when an incorrect name was entered, but causing the interface to crash during preview and a 500 error to be thrown when the user used it.
> 
> This commit adds detection for non-existent tag group names and fixes this issue

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [19 سبتمبر 2025، 3:57ص UTC](https://meta.discourse.org/t/form-templates-preview-broken-with-tag-group/372744/4 "2025-09-19T03:57:37Z")

</div>


