# Can't select multi-Reference field for text to connect to

**URL:** <https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896>\
**Category:** Ask the community\
**Created:** [November 7, 2021, 1:30pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896 "2021-11-07T13:30:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![markbpriv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/markbpriv/32/28446_2.png) [@markbpriv](https://forum.wixstudio.com/u/markbpriv)\
**Post date:** [November 7, 2021, 1:30pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/1 "2021-11-07T13:30:27Z")

</div>

Hi.

I hope some one can help me.

On my site I have a data set containing photos.  
One of the fields for the data set is “Category”. This is a Reference field and connects to a Gallery Categories data set, as each photo can belong to more than one category.

In the Editor X editor the field is greyed out so I can’t select.

 ![](https://us1.discourse-cdn.com/wix/original/3X/7/7/778aded7ea290d7a2c577b4f10ac161002282bd7.png)

Any ideas why?

Cheers

Mark

---

<div class="post-metadata">

**Author:** ![jim75924](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jim75924/32/17468_2.png) [@jim75924](https://forum.wixstudio.com/u/jim75924)\
**Post date:** [November 7, 2021, 6:07pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/2 "2021-11-07T18:07:15Z")

</div>

@markbpriv I don’t think a multi-reference field can be connected to a text element. Might a tag field work instead?

---

<div class="post-metadata">

**Author:** ![markbpriv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/markbpriv/32/28446_2.png) [@markbpriv](https://forum.wixstudio.com/u/markbpriv)\
**Post date:** [November 8, 2021, 1:03pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/3 "2021-11-08T13:03:09Z")

</div>

Thanks Jim.

I don’t want to use tags as in the photo collection I would like to reference the photo category collection. These are shown visually in the photo collection when I specify the categories. Also on the page where I am displaying the photos I’m am displaying the name and photo of each category from the category collection, and these link to dynamic category pages.

So I’m assuming I need to write some code to iterate through the photo collection and dynamically create an array of the category field value (multiple categories) and display it against the text label for each photo.

Any idea how to do this?

Cheers

Mark

---

<div class="post-metadata">

**Author:** ![jim75924](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jim75924/32/17468_2.png) [@jim75924](https://forum.wixstudio.com/u/jim75924)\
**Post date:** [November 8, 2021, 1:48pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/4 "2021-11-08T13:48:19Z")

</div>

Mark, I’m a beginner with both JavaScript and Velo, so I won’t be much help. If you haven’t already done so, you might want to check out the Velo Data API (https://www.wix.com/velo/reference/wix-data) and you might want to ask for advice on the Velo forum (https://www.wix.com/velo/forum/coding-with-velo).

---

<div class="post-metadata">

**Author:** ![markbpriv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/markbpriv/32/28446_2.png) [@markbpriv](https://forum.wixstudio.com/u/markbpriv)\
**Post date:** [November 8, 2021, 1:58pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/5 "2021-11-08T13:58:08Z")

</div>

No problem. Many thanks. 🙂

---

<div class="post-metadata">

**Author:** ![markbpriv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/markbpriv/32/28446_2.png) [@markbpriv](https://forum.wixstudio.com/u/markbpriv)\
**Post date:** [November 9, 2021, 3:56pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/6 "2021-11-09T15:56:24Z")

</div>

Hi Jim.

An update on this.

I can display the ids (instead of the titles as they are greyed out and not selectable as the field data source) of the categories as text against each photo.  
See screen shot below.

 ![](https://us1.discourse-cdn.com/wix/original/3X/9/2/92986a04b7eaf523daf18dd9bd1b0ea9d2742347.jpeg)

So my next issue is in code to replace the id’s with the category title and make them hyperlinks to each category.

If anyone can tell me how do this I would be most grateful.

Cheers

Mark

---

<div class="post-metadata">

**Author:** ![markbpriv](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/markbpriv/32/28446_2.png) [@markbpriv](https://forum.wixstudio.com/u/markbpriv)\
**Post date:** [November 14, 2021, 12:24pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/7 "2021-11-14T12:24:11Z")

</div>

Hi Jim.

Sorry I’ve confused my self.  
The field I selected was for a single value category field not the Multi-reference category field in my Gallery collection, so I have posted to the Velo forum for help.

> **[Convert Multi-Reference ids to title with hyperlink to a page | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/convert-multi-reference-ids-to-title-with-hyperlink-to-a-page)**
>
> Hi.
> 
> I hope some one can help me.
> 
> On my site I have a repeater connecting to a Gallery data set containing photos that are stored in a Gallery Collection. Here's a screen shot of one of the photos.
> 
> 
> 
> 
> 
> One of the fields in the Gallery Collection is...

Cheers

Mark

---

<div class="post-metadata">

**Author:** ![jim75924](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jim75924/32/17468_2.png) [@jim75924](https://forum.wixstudio.com/u/jim75924)\
**Post date:** [November 14, 2021, 1:23pm UTC](https://forum.wixstudio.com/t/cant-select-multi-reference-field-for-text-to-connect-to/47896/8 "2021-11-14T13:23:35Z")

</div>

Hi, Mark. Thanks for the follow-up.
