Is it possible to make part of a word in a text bold?


I’m designing a typeahead combo where I want to highlight the matching part in the dropdown list.
E.g. type ‘en’ will filter the results matching ‘en’ and show the ‘en’ part of each result in bold.
I use a list or text field where I enter

Alfred Alfredsen
Fien Fientjes

Unfortunately, this displays as I typed above, so with asterixes, instead of making the ‘en’ bold, like this:

Alfred Alfredsen
Fien Fientjes

[EDIT: Oops, it doesn’t work with the forum editor either]

Is it possible to make this work right, instead of having to create a several labels and glue them together?


Hi @nielso,

You’re right, the text formatting needs words separated by white spaces to work properly, as detailed here.

I’ve reported your need to the team so we can think about this and see if there is a better way. If others would find this useful, please let us know by commenting or liking this post.

In the meantime, overlaying controls is probably the easiest workaround indeed.

Please let us know if you need anything else, we’re always here to help! :slight_smile: