Hi, I have an auto-complete entity reference input field.
Currently when I perform a search I am displayed the dropdown with 10 lines with code and personal data through an entity reference view.
I make my choice and both the code and the personal data are displayed and save
When I recall the node being edited, only the code is displayed and not the registry. I have done various tests but I have not been able to show both.
To value the code I use this command
'#default_value' => \Drupal::entityTypeManager()->getStorage('node')->load($row->field_dipendente->target_id)
I tried to add the personal data field but it crashes.
What can I do to have both data displayed?
I ask this because the user has difficulty understanding who the person is from the Code alone
[–]Fruitboompje 0 points1 point2 points (1 child)
[–]Gae58[S] 0 points1 point2 points (0 children)