# Adding Prefix to Dataset's Text

**URL:** <https://forum.wixstudio.com/t/adding-prefix-to-datasets-text/42469>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [May 18, 2022, 9:51pm UTC](https://forum.wixstudio.com/t/adding-prefix-to-datasets-text/42469 "2022-05-18T21:51:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cameron-vokey](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@cameron-vokey](https://forum.wixstudio.com/u/cameron-vokey)\
**Post date:** [May 18, 2022, 9:51pm UTC](https://forum.wixstudio.com/t/adding-prefix-to-datasets-text/42469/1 "2022-05-18T21:51:34Z")

</div>

On my master Project Page “Projects (All)”, I have two pieces of text that I want to add prefixes to. I only want to add those prefixes to the (All) page. The discrete project pages don’t need the prefix I’m not a coder, but my understanding is that I need to add a Hook function of some kind to the (All) page?

I want to add text as a prefix to two different strings - both part of #projectsDataset  
To #text2 where the field key is “role”, I’d like to add the prefix “Role:”

To #shortDescription where the field key is “shortProjectDescription”, I’d like to add the prefix “Details:”

It’s been a minute for me, but to style just those prefixes, is it in-line styling?

---

<div class="post-metadata">

**Author:** ![Certified\_Code](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/certified_code/32/80179_2.png) [@Certified\_Code](https://forum.wixstudio.com/u/Certified_Code)\
**Post date:** [May 19, 2022, 1:56am UTC](https://forum.wixstudio.com/t/adding-prefix-to-datasets-text/42469/2 "2022-05-19T01:56:59Z")

</div>

Hi @cameron-vokey ,

You can consider the following ways:

1. [Add a hook](https://www.wix.com/velo/reference/wix-data/hooks/afterquery) and modify the content before returning the item.

2. [Get the item](https://www.wix.com/velo/reference/wix-dataset/dataset/getcurrentitem) on front end and apply the modified content to the text element.

Does it solve your questions?

[_Certified Code_](https://certifiedcode.space/)
