Initial_Filter on Popup Search from editView related type field

Environment
Apache
MySQL 5.6
PHP 7.1
Linux (CentOS 6.9)
SuiteCRM 7.10.2 (fresh install)

Issue:
I have a PopUp for a custom module PatientContact and I am trying to filter on by Patient Name which is define on the PopUp Search. I’m trying to pass in Patient Name via initial_filter on a field type related link to PatientContact. Unfortunately, the Patient Name is not passed into the Popup. Below I have shared some code snipits.

If you are familiar with how to resolve this issue, your assistance would be greatly appreciated.

CODE SNIPIT

editView Code
0 =>
array (
‘name’ => ‘etk_ensitecmpatient_etk_ensitecarerequest_1_name’,
‘displayParams’ =>
array (
‘size’ => ‘255’,
‘required’ => true,
‘field_to_name_array’ =>
array (
‘name’ => ‘etk_ensitecmpatient_etk_ensitecarerequest_1_name’,
‘id’ => ‘etk_ensiteca35patient_ida’,
‘admission_status’ => ‘patient_admission_status’,
‘start_of_care_date’ => ‘start_of_care_date’,
‘patient_mrn’ => ‘patient_mrn’,
‘gender’ => ‘patient_gender’,
‘phone_home’ => ‘patient_home_phone’,
‘patient_sub_unit’ => ‘patient_subunit’,
.
.
.
.

'lbl_editview_panel3' => 
  array (
    0 => 
    array (
      0 => 
      array (
        'name' => 'parent_name',
        'studio' => 'visible',
        'label' => 'LBL_FLEX_RELATE',
         'displayParams' => array ( 'initial_filter_fields' =>  '&etk_ensitecmpatient_etk_ensitecmpatientcontacts_name_advanced="{$fields.etk_ensitecmpatient_etk_ensitecarerequest_1_name.value}"', 
         ),
      ),
    ),
    1 => 

POPUP SEARCH
$popupMeta = array (
‘moduleMain’ => ‘ETK_enSiteCMPatientContacts’,
‘varName’ => ‘ETK_enSiteCMPatientContacts’,
‘orderBy’ => ‘etk_ensitecmpatientcontacts.first_name, etk_ensitecmpatientcontacts.last_name’,
‘whereClauses’ => array (
‘first_name’ => ‘etk_ensitecmpatientcontacts.first_name’,
‘last_name’ => ‘etk_ensitecmpatientcontacts.last_name’,
‘address_city’ => ‘etk_ensitecmpatientcontacts.address_city’,
‘do_not_call’ => ‘etk_ensitecmpatientcontacts.do_not_call’,
‘email’ => ‘etk_ensitecmpatientcontacts.email’,
‘patient_contact_type’ => ‘etk_ensitecmpatientcontacts.patient_contact_type’,
‘etk_ensitecmpatient_etk_ensitecmpatientcontacts_name’ => ‘etk_ensitecmpatientcontacts.etk_ensitecmpatient_etk_ensitecmpatientcontacts_name’,
),
‘searchInputs’ => array (
0 => ‘first_name’,
1 => ‘last_name’,
2 => ‘address_city’,
3 => ‘do_not_call’,
4 => ‘email’,
5 => ‘patient_contact_type’,
6 => ‘etk_ensitecmpatient_etk_ensitecmpatientcontacts_name’,
),

Anyone have any suggestions?

Hi I have made a short tutorial here link here