rosemariafontana commited on
Commit
4e2a81d
·
verified ·
1 Parent(s): d43a4b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -75,10 +75,11 @@ def display_parameter_survey():
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);
 
 
82
  window.huggingface.variables.mySubmissionData = data;
83
  }}
84
  }});
 
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);
81
+ const inputElement = document.querySelector('input[name="inputtext"]');
82
+ console.log("Input Element:", inputElement);
83
  window.huggingface.variables.mySubmissionData = data;
84
  }}
85
  }});