keystone icon indicating copy to clipboard operation
keystone copied to clipboard

`ui.labelField` option does not render on relationship fields

Open bladey opened this issue 4 years ago • 5 comments

Bug report

Setting ui.labelField on a relationship field doesn't render the chosen data.

You can see below I'm attempting to use the email field from the user as the value (first arrow) however it doesn't pick up on this, it continues to default to the list default, which is the name of the user.

If I set it on a list level (second arrow, commented out) it comes through fine.

export const lists = createSchena({

Field level:

image

List level:

image

Are we missing an option on this line here?

It is currently this:

image

Changing this to:

image

Does not have any effect, but it seems to be a step in the right direction, as we probably need to gather meta data somewhere for data to be available (?).

bladey avatar Jul 15 '21 06:07 bladey

Slack reference - https://keystonejs.slack.com/archives/C01STDMEW3S/p1626240048270500

bladey avatar Jul 19 '21 02:07 bladey

+1, I came upon this too

jigz avatar Dec 07 '21 23:12 jigz

+1

supermx1 avatar Dec 27 '21 08:12 supermx1

+1

cpt-n3mo avatar Mar 14 '22 23:03 cpt-n3mo

I have the same issue. Apparently this should be fixed when #7352 is merged! 👍

willemmulder avatar Aug 05 '22 20:08 willemmulder

+1 | Same here. I added a pull request, but still the labelField is not changed on the <RelationshipSelect /> component dropdown options. And it has been more than one year the issues has been opened. https://github.com/keystonejs/keystone/pull/8049

georgekrax avatar Oct 28 '22 19:10 georgekrax

Fixed for the relationship field in https://github.com/keystonejs/keystone/pull/8049, #7352 did resolve the problem too, but the other changes there aren't ready for merge.

dcousens avatar Nov 07 '22 00:11 dcousens