How to combine 2 fields as title_name in a relationship field type?Created 4 years ago by cherisho
Hi everyone! I have the following to declare a relationship field: 'patient' => [ 'type' => 'anomaly.field_type.relationship', 'config' => [ 'mode' => 'search', 'key_name' => 'id', 'title_name' => 'last_name', 'related' => \Vendor\PatientsModule\Patient\PatientModel::class, ], ],
It renders perfectly in the form. The fields for the Patient stream are: first_name, last_name, email, etc.
But how can I display the first_name and last_name fields together, as the title_name in the field definition above?