question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
georgekraxcommented, Oct 28, 2022

+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

0reactions
dcousenscommented, Nov 7, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Relationship - Keystone 6 Documentation - KeystoneJS
Relationship. A relationship field represents a relationship between two lists. Read our relationships guide for details on Keystone's relationship model ...
Read more >
Keystonejs admin ui : View field instead of id for relationships
You just have to add a labelField when creating the list with the field name you want to be displayed instead the id....
Read more >
Label field options - Kofax Product Documentation
Label field options define the appearance of the label in a form. ... The label field will not be visible on the device...
Read more >
Modifying the Label of Form Fields With Client Scripts
Just make sure you set the 'UI type' field on the client script form to ... It is possible, and this post will...
Read more >
App Customization Superbadge Challenge 2
here's what's wrong: Couldn't find the 'Volunteer Shift' relationship field or it is not configured correctly." Please, anyone, can anyone tell ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found