# كيفية إنشاء نموذج مخصص في composer

**URL:** https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259
**Category:** Development
**Created:** [19 أغسطس 2024، 1:30م UTC](https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259 "2024-08-19T13:30:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Harshit\_Dave](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harshit_dave/32/379059_2.png) [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)
#### Post date: [19 أغسطس 2024، 1:30م UTC](https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259/1 "2024-08-19T13:30:45Z")

</div>

مرحباً،

أريد فتح منشئ رسائل عند النقر على زر، والذي سيحتوي على حقل إدخال، وأي قيمة في حقل الإدخال سأقوم بجلب البيانات ثم إنشاء موضوع بملء البيانات التي تم جلبها.

هل يمكن لأحد أن يرشدني إلى كيفية إنشاء نموذج مخصص في منشئ الرسائل؟

---

<div class="post-metadata">

### Author: ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)
#### Post date: [19 أغسطس 2024، 1:32م UTC](https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259/2 "2024-08-19T13:32:56Z")

</div>

يمكنك إلقاء نظرة على

> [@Introducing Experimental Form Templates](https://meta.discourse.org/t/introducing-experimental-form-templates/278631):
>
> Hello, Discourse Meta Community! We are excited to introduce a new experimental feature, form templates. With it, you can enforce a structured form with data validation as part of the topic creation flow. [multiple\_form\_templates] Enabling the feature The feature is hidden behind a site-wide experimental flag. To enable it, just turn on the experimental\_form\_templates site setting under wrench Admin ▸ Settings. Managing the templates The form templates can be created, edited, and deleted a…

أعتقد أنه يجب أن يناسب حالة الاستخدام الخاصة بك على مستوى منخفض 🙂

إذا كنت ستقوم بجلب البيانات من واجهة برمجة تطبيقات مخصصة، فقد تحتاج إلى مكون إضافي / سمة مخصصة.

---

<div class="post-metadata">

### Author: ![Harshit\_Dave](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harshit_dave/32/379059_2.png) [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)
#### Post date: [19 أغسطس 2024، 1:45م UTC](https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259/3 "2024-08-19T13:45:23Z")

</div>

إنها ميزة رائعة ولكنها لا تلبي متطلباتي بالكامل. يمكنني أن أرى أن هذا ينشئ قالبًا يتم توصيله في نموذج إنشاء موضوع وهو أمر مختلف. ولكن، أريد عرض علامة إدخال في الملحن وعند حفظ النموذج أو إرساله. يجب علي إنشاء موضوع ببعض البيانات. في الأساس، سيتم عرض ملحنين تلو الآخر، أولاً بعلامة إدخال ثم سيتم عرض نموذج إنشاء موضوع بالبيانات المعبأة مسبقًا التي سأمررها من الملحن الأول.

نعم، أنا أفعل هذا في سمة مخصصة ولكنني غير قادر على عرض علامة إدخال في الملحن. أنا أبحث عن طريقة للقيام بذلك.

---

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [19 أغسطس 2024، 2:54م UTC](https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259/4 "2024-08-19T14:54:35Z")

</div>

ماذا لو قمت بتعيين حد أدنى للعلامات للمنشورات في تلك الفئة؟

---

<div class="post-metadata">

### Author: ![Harshit\_Dave](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harshit_dave/32/379059_2.png) [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)
#### Post date: [19 أغسطس 2024، 3:28م UTC](https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259/5 "2024-08-19T15:28:00Z")

</div>

يقوم بإنشاء قالب لكل فئة ولكن أريد عرض علامة الإدخال/HTML في المنشئ بغض النظر عن الفئة. يجب أن يكون في قسم عام، عندما أنقر على الزر يجب أن أقوم بعرض النموذج وعندما أقدم النموذج يجب أن أقوم بملء البيانات مسبقًا في نموذج إنشاء الموضوع.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [19 أغسطس 2024، 4:34م UTC](https://meta.discourse.org/t/how-to-create-a-custom-form-in-composer/322259/6 "2024-08-19T16:34:45Z")

</div>

إذا كنت أفهم بشكل صحيح. قد تكون هذه الإضافة هي ما تبحث عنه

> [@Custom Wizard Plugin mage](https://meta.discourse.org/t/custom-wizard-plugin/73345):
>
> pavilionSummary Forms for Discourse. This plugin lets you make rich and powerful forms for your Discourse forum. Better user onboarding, structured posting, data enrichment, automated actions and much more for your community.hammer_and_wrenchRepository Link [https://github.com/paviliondev/discourse-custom-wizard](https://github.com/paviliondev/discourse-custom-wizard)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)people_huggingCommunity Community based support and discussions about this plugin are hosted on th…

قد تساعدك هذه الإضافة أيضًا كبديل.

> [@Discourse Preset Topic Composer](https://meta.discourse.org/t/discourse-preset-topic-composer/311174?u=heliosurge):
>
> discourse2Summary Add presets to your new topic buttonhammer_and_wrenchRepository Link [GitHub - discourse/discourse-preset-topic-composer: preset composer](https://github.com/discourse/discourse-preset-topic-composer)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Features It adds presets to new topic button. Here are a few images of the plugin in action: The new topic button has two presets in this example: new question and new event I’ve selected new question for this exa…
