{"action":"opened","issue":{"url":"https://api.github.com/repos/marmelab/react-admin/issues/2139","repository_url":"https://api.github.com/repos/marmelab/react-admin","labels_url":"https://api.github.com/repos/marmelab/react-admin/issues/2139/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/react-admin/issues/2139/comments","events_url":"https://api.github.com/repos/marmelab/react-admin/issues/2139/events","html_url":"https://github.com/marmelab/react-admin/issues/2139","id":348462761,"node_id":"MDU6SXNzdWUzNDg0NjI3NjE=","number":2139,"title":"Custom value field in AutocompleteInput inside ReferenceInput","user":{"login":"tomasgvivo","id":1284744,"node_id":"MDQ6VXNlcjEyODQ3NDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1284744?v=4","gravatar_id":"","url":"https://api.github.com/users/tomasgvivo","html_url":"https://github.com/tomasgvivo","followers_url":"https://api.github.com/users/tomasgvivo/followers","following_url":"https://api.github.com/users/tomasgvivo/following{/other_user}","gists_url":"https://api.github.com/users/tomasgvivo/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasgvivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasgvivo/subscriptions","organizations_url":"https://api.github.com/users/tomasgvivo/orgs","repos_url":"https://api.github.com/users/tomasgvivo/repos","events_url":"https://api.github.com/users/tomasgvivo/events{/privacy}","received_events_url":"https://api.github.com/users/tomasgvivo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T19:49:55Z","updated_at":"2018-08-07T19:49:55Z","closed_at":null,"author_association":"NONE","body":"When using AutocompleteInput inside ReferenceInput, is it possible to define which field from the reference entity use as the AutocompleteInput value?\r\n\r\nExample:\r\n```\r\n<ReferenceInput source=\"country_code\" label=\"Country\" reference=\"Country\" perPage={5}>\r\n  <AutocompleteInput optionText=\"name\" />\r\n</ReferenceInput>\r\n```\r\n\r\nWhere Country:\r\n\r\nid | name | code\r\n--- | --- | ---\r\n1 | Aruba | aw\r\n2 | Afghanistan | af\r\n3 | Angola | ao\r\n\r\nI want to save country.code of the selected country into country_code."}}
{"actor":{"display_login":"tomasgvivo"}}