# Display values for RichText labels

**URL:** <https://community.prismic.io/t/display-values-for-richtext-labels/3818>\
**Category:** Prismic for Content Creators\
**Tags:** product-feature-idea\
**Created:** [February 1, 2021, 2:33pm UTC](https://community.prismic.io/t/display-values-for-richtext-labels/3818 "2021-02-01T14:33:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmytrob](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dmytrob](https://community.prismic.io/u/dmytrob)\
**Post date:** [February 1, 2021, 2:33pm UTC](https://community.prismic.io/t/display-values-for-richtext-labels/3818/1 "2021-02-01T14:33:47Z")

</div>

Loving the RichText labels functionality, but missing the ability to have two values per label, - a key/technical one and a user-friendly one, that shows up in RichText UI dropdown.

Use case, - the typography in our design system is defined as` ["hero", "title", "subtitle", "body", ...]` which is what we have define for out typography labels, but it's quite technical and not always immediately obvious for the non-technical end-users. We would prefer to be able to configure the labels somewhat like this: `[{ name: "hero", display: "Hero (H1)"}, { name: "title", display: "Title (H2)"}, ...]`, so that we can customize the display values of the labels to be more understandable without compromising the tech of our app. Trying to define it like this in content-type JSON currently breaks the RichText for the field (it doesn't show in the UI), so it looks like it's unsupported at the moment.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [February 1, 2021, 4:39pm UTC](https://community.prismic.io/t/display-values-for-richtext-labels/3818/2 "2021-02-01T16:39:15Z")

</div>

Hi Dmytro,

Welcome to the community.

As you've seen this isn't possible at the moment, but we are tracking a similar feature request for select fields and I suggested a workaround suggested using regular expressions there:

> [@Iterating Select values in template from other Document (Object + Key)](https://community.prismic.io/t/iterating-select-values-in-template-from-other-document/818/2):
>
> Hey Srini, At the moment it isn’t possible to define a label and a separate value. The [@features-team](https://community.prismic.io/groups/features-team) have an open feature request for this, if/when we ever make a change to this behaviour we’ll update you in this thread. For now you will need to build the values into your website application. Sorry for the inconvenience. One solution might be to add values like: Downtown warehouse [33] Then in your project use regular expressions to get only numbers inside the brackets: or js slice to …

You would need to combine something like that with the HTML Serializer since this is in the Rich Text field:

> **[Rich Text](https://prismic.io/docs/rich-text)**
>
> On this page, you’ll learn how to work with rich text from Prismic.

I'm tracking this as a separate feature request also as it's slightly different than the original request. Though I don't think the product team will implement this in the near future as they are planning an overhaul of the Rich Text field and this would have to be considered alongside that work.

I hope this helps,  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [February 16, 2021, 4:26pm UTC](https://community.prismic.io/t/display-values-for-richtext-labels/3818/4 "2021-02-16T16:26:48Z")

</div>

closed on February 16, 2021, 4:26pm UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:51pm UTC](https://community.prismic.io/t/display-values-for-richtext-labels/3818/5 "2021-12-09T12:51:22Z")

</div>

Opened on December 9, 2021, 12:51pm UTC


