Unable to get Contact ID to display in Custom Field
I was able to figure this out using the following code:

        $getSessionArray = CRM_Core_Session::singleton()-&gt;get('CRM_Utils_Recent');
        $thisContactID = $getSessionArray[0]['id'];