שדה המשתמש

:discourse2: Summary User Field Prompt allows you to show a user field form in any Discourse post.
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-user-field-prompt
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

User Field Prompt allows you to show a user field form in any Discourse post. Changes made in the form will be saved in the current user profile. It’s useful to ask users to make changes to a user field without having to force them to search the field in their profile.

Usage for a user field named age and another one named best fruits:

[wrap=user-field names="age,best fruits"][/wrap]


:discourse2: Hosted by us? Theme components are available to use on our Pro, Business, and Enterprise plans.

Last edited by @Moin 2026-04-22T17:18:25Z

Check documentPerform check on document:
34 לייקים

שלום, זה לא עובד בשבילי, זה מציג שדה ריק ושגיאה בעת שמירת הפוסט.

לייק 1

שלום, האם מישהו השתמש בזה בהצלחה?

שלום @patrickemin
אני יכול לאשר שזה לא עובד כרגע. תייגתי את האנשים הרלוונטיים, אז אני מקווה שיהיה תיקון בקרוב.

2 לייקים

Thanks for the report. This should be fixed now: FIX: Rendering strategy (#34) · discourse/discourse-user-field-prompt@c468800 · GitHub

3 לייקים

שלום, בדקתי שוב וזה עדיין לא עובד: אין שגיאה מוצגת אבל הפוסט ריק.

Any chance you can share a link to an example broken post on your forum? (in PM is fine if you prefer not to share here)

The preview of the theme on theme-creator is working for me (as long as you’re logged in)

Yes here you are: User field prompt test - Catégorie test - Dessein-Tech

Are you sure the user-field-prompt theme component is installed and enabled? I don’t see its code in the dev tools :thinking:

My bad the TC was deactivated, it’s now active, I created a new topic: User field prompt test 2 - Catégorie test - Dessein-Tech the frame around the field appears but is not editable. On top of that, the delete button and edit button for that topic do not work (there a delay of 30 seconds before the topic is actually deleted or can be edited). The wrench icon does not react too. This happens in Preview mode too.

לייק 1

I think the problem is that your site is running a legacy version of the post-stream, because discourse-nationalflags has not yet been updated for the new post stream. As an admin, you should be seeing a red banner about that issue.

The recent fixes for user-field-prompt were built only with the new post-stream in mind, so that’s why it’s causing errors on your site.

So if you need this user-field feature right now, I’d recommend disabling the nationalflags plugin. Otherwise, you’ll need to wait for the developer of that plugin to make the necessary updates.

x-ref:

5 לייקים

Thank you for your analysis :slightly_smiling_face: . I’ll wait for the nationalflags update.

לייק 1

Hi, the national flags plugin has been updated and the TC User Field now works !

5 לייקים

Maybe the screenshot in the first post could be updated so it’s less unexpected that the title and description are shown below the field.

It no longer looks like it does in the preferences.

3 לייקים

Would be nice to have them consistent, and this is a minor change.

How tricky is a modification to bring them into alignment?

2 לייקים

We are going to have a better solution than this theme component in the coming weeks, so Im not going to spend time on this sorry.

לייק 1

Is this something like user fields in TCs :eyes: ?