---
title: Displaying badges in user profiles
related:
  - https://docs.kentico.com/k12sp/custom-development/developing-form-controls/assigning-form-controls-to-fields.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

You can use built-in form controls to display badges in user profiles, or in any other form that displays or edits user data. By default, the User public profile web part uses the _CMS.User.DisplayProfile_ form, which already includes the user's badge.

## Changing badge appearance in User public profile

You can change how the badge appears in the default User public profile web part. You can use one of the two form controls that display badge data:

- **Viewer - Badge image (ViewBadgeImage)** - used for displaying the image of a badge.
- **Viewer - Badge text (ViewBadgeText)** - used for displaying the Display name of a badge.

1. Open the **Modules** application and **Edit** () the **Membership** module.
2. Switch to the **Classes** tab and edit the **User** class.
3. Switch to the **Alternative forms** tab and edit the **Display profile** form.
4. On the **Fields** tab, select the **UserBadgeID** field.
5. Under **Field appearance**, change **Form control** to either _**Viewer - Badge text**_ or _**Viewer - Badge image**_.

The User public profile displays either the badge image or badge display name.
