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

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.

Any ideas why?

Cheers

Mark

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

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

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).

No problem. Many thanks. :slight_smile:

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.

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

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.

Cheers

Mark

Hi, Mark. Thanks for the follow-up.