Skip to content

DynamicForm cannot display lookup value when the source field is not Title #1215

Closed
@yungfu

Description

@yungfu

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.7.2]

If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.

Expected / Desired Behavior / Question

Edit an item which has a lookup field, the lookup field source field is not Title, but another custom field. When open this DynamicForm to edit item, the exist lookup value disappeared.
This issue also occurred on MultiLookup field.
I suspect this is caused by that, the SPService.getLookupValue or SPService.getLookupValues has a hard code expanding the lookup field title field.

Observed Behavior

Lookup field value in DynamicForm is empty.

Steps to Reproduce

  1. add a lookup field which source field is not Title tes list
  2. add an item with the lookup field value filled
  3. open this item with DynamicForm, the lookup field value is empty

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions