Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,6 +75,7 @@ def display_parameter_survey():
|
|
| 75 |
<iframe src="{survey_url}" width="100%" height="600px"></iframe>
|
| 76 |
<script>
|
| 77 |
window.addEventListener("message", (event) => {{
|
|
|
|
| 78 |
if (event.origin === "https://app.surveystack.io" && event.data.type === "SUBMISSION_SUBMIT_SUCCESS") {{
|
| 79 |
const data = event.data;
|
| 80 |
console.log("Submission ID:", data);
|
|
|
|
| 75 |
<iframe src="{survey_url}" width="100%" height="600px"></iframe>
|
| 76 |
<script>
|
| 77 |
window.addEventListener("message", (event) => {{
|
| 78 |
+
console.log("Event Data Received:", event.data);
|
| 79 |
if (event.origin === "https://app.surveystack.io" && event.data.type === "SUBMISSION_SUBMIT_SUCCESS") {{
|
| 80 |
const data = event.data;
|
| 81 |
console.log("Submission ID:", data);
|