You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Relation widget is not working when using {{slug}} as value_field as described here https://www.netlifycms.org/docs/widgets/relation/. The autocomplete field only show one suggestion, and when selecting that option no value is assigned to the field. It works perfectly when using title as value_field. The only problem then is that the relation disappears when the title of the related item changes.
To Reproduce
Add relation widget
label: Top Activeties
name: top_activeties
widget: relation
collection: <collection to search>
search_fields: ["title"]
value_field: '{{slug}}'
display_fields: ["title"]
Expected behavior
Relation field should show all suggestions. When an item is selected the title should display, and the slug should be the value in the markdown file
Screenshots
Only one suggestion when using slug as valueField
When the item is selected the field is not updated with any value, preventing me from saving the page.
This is what it should look like, but now i use title as value_field
Just some additional information from when I encountered this bug this weekend: it only happens when the slug of the target of the relation is something other than "{{slug}}"
Describe the bug
Relation widget is not working when using
{{slug}}
asvalue_field
as described here https://www.netlifycms.org/docs/widgets/relation/. The autocomplete field only show one suggestion, and when selecting that option no value is assigned to the field. It works perfectly when usingtitle
asvalue_field
. The only problem then is that the relation disappears when the title of the related item changes.To Reproduce
Expected behavior
Relation field should show all suggestions. When an item is selected the title should display, and the slug should be the value in the markdown file
Screenshots
Only one suggestion when using slug as valueField
When the item is selected the field is not updated with any value, preventing me from saving the page.
This is what it should look like, but now i use
title
asvalue_field
CMS configuration
Additional context
netlify-cms-app 2.14.21
bootstrap.js:85 netlify-cms-core 2.38.0
index.js:27 netlify-cms 2.10.91
The text was updated successfully, but these errors were encountered: