diff --git a/app/static/js/request/view-request-responses.js b/app/static/js/request/view-request-responses.js
index 053461823..a3d5e8e71 100644
--- a/app/static/js/request/view-request-responses.js
+++ b/app/static/js/request/view-request-responses.js
@@ -434,7 +434,10 @@ $(function () {
" " +
"Error, note content is required. Please type in a message.");
- characterCounter("#character-counter-note-" + response_id, 5000, tinyMCE.get("note-" + response_id).getContent({format: 'text'}).trim().length);
+ // Check the ID to make sure the tinymce field exists before setting the character counter
+ if ($('#note-' + response_id).length) {
+ characterCounter('#character-counter-note-' + response_id, 5000, tinyMCE.get('note-' + response_id).getContent({format: 'text'}).trim().length);
+ }
break;
@@ -574,7 +577,10 @@ $(function () {
" " +
"Error, Offline Instructions must be at least 20 characters.");
- characterCounter("#character-counter-instruction-" + response_id, 500, tinyMCE.get("instruction-" + response_id).getContent({format: 'text'}).trim().length, 20);
+ // Check the ID to make sure the tinymce field exists before setting the character counter
+ if ($('#instruction-' + response_id).length) {
+ characterCounter('#character-counter-instruction-' + response_id, 500, tinyMCE.get('instruction-' + response_id).getContent({format: 'text'}).trim().length, 20);
+ }
break;