diff --git a/fillcomments.js b/fillcomments.js
index f8388b6..a97587b 100644
--- a/fillcomments.js
+++ b/fillcomments.js
@@ -35,7 +35,7 @@ function doComments(id,qid) {
const parsed = JSON.parse(data);
const div = document.getElementById(id);
-
+ console.log(div);
// Create a new
element
const ul = document.createElement("ul");
diff --git a/getQuestionsData.php b/getQuestionsData.php
index 7adc26c..d75ac2e 100644
--- a/getQuestionsData.php
+++ b/getQuestionsData.php
@@ -20,11 +20,11 @@ $apiToken = $config['api_token'];
$dataCenter = $config['data_centre'];
// Get the survey ID from POST
-$surveyId = $_POST['survey_id'] ?? null;
+$surveyId = $_POST['surveyId'] ?? null;
if (!$surveyId) {
//$surveyId="SV_cAstEvm4ZrPaqGi";
- $surveyId="SV_cwKjMqAqGxImjMG";
- #die("No survey ID provided.");
+ //$surveyId="SV_cwKjMqAqGxImjMG";
+ die("No survey ID provided.");
}
// Build URL