Enhancement: Increase Patient Message Popup Size and Response Box

Enhancement: Increase Patient Message Popup Size and Response Box

OpenEMR Version: 7.0.4 Files Modified: interface/patient_file/summary/pnotes_full.php and interface/patient_file/summary/pnotes_full_add.php


Background

The default Patient Message popup (accessed from the patient chart Messages box via +Add or Edit) opens at 700×400 pixels, which feels cramped — especially the response textarea at the bottom. This enhancement increases the popup size and expands the response box.


Changes Made

1. Popup window size (pnotes_full.php, line 245)

The popup is launched via dlgopen. The default dimensions were increased for a more comfortable working size:

php

// Before
dlgopen('', '', 700, 400, '', '', {

// After
dlgopen('', '', 1029, 588, '', '', {

2. Response textarea (pnotes_full_add.php, line 295)

The response box at the bottom of the popup was doubled in height and widened:

html

<!-- Before -->
<textarea name='note' id='note' class='form-control' rows='4' cols='58'></textarea>

<!-- After -->
<textarea name='note' id='note' class='form-control' rows='8' cols='81'></textarea>

Notes

  • The window.open dimensions also present in pnotes_full_add.php (lines 374 and 421) do not control the popup size — dlgopen in pnotes_full.php is the actual controller. This may save others some troubleshooting time.
  • Always back up files before editing.
  • These changes survive normal use but may need to be reapplied after a major OpenEMR upgrade.