From b63ab1f54453c8fd30e3e6271e281cd03ccd950b Mon Sep 17 00:00:00 2001 From: Aidan Wilson Date: Thu, 19 May 2022 14:46:56 +1000 Subject: [PATCH] Enable CSS injection on survey acknowledgement page --- ExternalModule.php | 7 +++++++ config.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ExternalModule.php b/ExternalModule.php index 4598262..5a37b97 100644 --- a/ExternalModule.php +++ b/ExternalModule.php @@ -28,6 +28,13 @@ function redcap_survey_page_top($project_id, $record = null, $instrument, $event $this->applyStyles('survey', $instrument); } + /** + * @inheritdoc + */ + function redcap_survey_acknowledgement_page($project_id, $record = null, $instrument, $event_id, $group_id = null, $survey_hash, $response_id = null, $repeat_instance = 1) { + $this->applyStyles('survey', $instrument); + } + /** * Apply CSS rules. * diff --git a/config.json b/config.json index efba07f..735b2a9 100644 --- a/config.json +++ b/config.json @@ -4,7 +4,8 @@ "description": "Allow administrators to inject CSS into surveys and data entry forms. See full documentation here.", "permissions": [ "redcap_data_entry_form_top", - "redcap_survey_page_top" + "redcap_survey_page_top", + "redcap_survey_acknowledgement_page" ], "authors": [ {