`ui.labelField` option does not render on relationship fields
See original GitHub issueBug 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({](https://user-images.githubusercontent.com/737821/125738152-6e1ae11b-7a95-4b26-bc74-abbec481140d.png)
Field level:
![image](https://user-images.githubusercontent.com/737821/125738517-b0dc51cb-ada0-420f-8a2e-03f395c25057.png)
List level:
![image](https://user-images.githubusercontent.com/737821/125738633-b31d98da-ca3f-4b9b-bb8e-8c5093048280.png)
Are we missing an option on this line here?
It is currently this:
![image](https://user-images.githubusercontent.com/737821/125738726-bb6d02a7-7354-48ab-a101-935b4dbe06b2.png)
Changing this to:
![image](https://user-images.githubusercontent.com/737821/125738423-61d140b8-5001-48b3-af69-350ad2d98be0.png)
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:
- Created 2 years ago
- Reactions:5
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+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/8049Fixed 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.