From 5dc5d0c7283fc1fdb23ab53d3339efac4746e96c Mon Sep 17 00:00:00 2001 From: Peter Edmond Date: Mon, 2 Jun 2025 17:24:32 +0100 Subject: [PATCH] Added code to get comments from database --- JSONStructure.json | 1507 -------------------------------------------- Questions.json | 2 - get_text_data.html | 58 ++ get_text_data.php | 107 ++++ 4 files changed, 165 insertions(+), 1509 deletions(-) delete mode 100644 JSONStructure.json delete mode 100644 Questions.json create mode 100644 get_text_data.html create mode 100644 get_text_data.php diff --git a/JSONStructure.json b/JSONStructure.json deleted file mode 100644 index f5cb151..0000000 --- a/JSONStructure.json +++ /dev/null @@ -1,1507 +0,0 @@ -{ - "responses": [ - { - "responseId": "R_8WvAB7ZnVIOwrFL", - "values": { - "startDate": "2025-05-15T13:05:06Z", - "endDate": "2025-05-15T13:10:45Z", - "status": 1, - "progress": 100, - "duration": 339, - "finished": 1, - "recordedDate": "2025-05-15T13:10:46.514Z", - "_recordId": "R_8WvAB7ZnVIOwrFL", - "locationLatitude": "51.5177", - "locationLongitude": "-0.6215", - "distributionChannel": "preview", - "userLanguage": "EN", - "QID68": 1, - "QID69": 1, - "QID70": 1, - "QID35_7": -3, - "QID35_2": -3, - "QID35_8": -3, - "QID35_9": -3, - "QID35_10": -3, - "QID36_7": -3, - "QID36_2": -3, - "QID36_8": -3, - "QID36_9": -3, - "QID37_7": -3, - "QID37_2": -3, - "QID37_8": -3, - "QID37_20": -3, - "QID37_21": -3, - "QID37_22": -3, - "QID2_7": -3, - "QID2_2": -3, - "QID2_8": -3, - "QID2_9": -3, - "QID33_7": -3, - "QID33_2": -3, - "QID33_8": -3, - "QID33_9": -3, - "QID34_7": -3, - "QID34_2": -3, - "QID34_8": -3, - "QID34_17": -3, - "QID40_7": -3, - "QID40_2": -3, - "QID40_8": -3, - "QID40_9": -3, - "QID41_7": -3, - "QID41_2": -3, - "QID41_19": -3, - "QID41_20": -3, - "QID41_21": -3, - "QID42_7": -3, - "QID42_2": -3, - "QID42_8": -3, - "QID44_21": -3, - "QID44_7": -3, - "QID44_2": -3, - "QID44_8": -3, - "QID45_24": -3, - "QID45_25": -3, - "QID45_26": -3, - "QID45_29": -3, - "QID46_27": -3, - "QID46_28": -3, - "QID46_29": -3, - "QID46_30": -3, - "QID46_31": -3, - "QID46_32": -3, - "QID46_33": -3, - "QID46_34": -3, - "QID46_36": -3, - "QID46_37": -3 - }, - "labels": { - "status": "Survey Preview", - "finished": "True", - "QID68": "Site 1", - "QID69": "Role 1", - "QID70": "Role 1", - "QID35_7": "-3\nStrongly disagree", - "QID35_2": "-3\nStrongly disagree", - "QID35_8": "-3\nStrongly disagree", - "QID35_9": "-3\nStrongly disagree", - "QID35_10": "-3\nStrongly disagree", - "QID36_7": "-3\nStrongly disagree", - "QID36_2": "-3\nStrongly disagree", - "QID36_8": "-3\nStrongly disagree", - "QID36_9": "-3\nStrongly disagree", - "QID37_7": "-3\nStrongly disagree", - "QID37_2": "-3\nStrongly disagree", - "QID37_8": "-3\nStrongly disagree", - "QID37_20": "-3\nStrongly disagree", - "QID37_21": "-3\nStrongly disagree", - "QID37_22": "-3\nStrongly disagree", - "QID2_7": "-3\nStrongly disagree", - "QID2_2": "-3\nStrongly disagree", - "QID2_8": "-3\nStrongly disagree", - "QID2_9": "-3\nStrongly disagree", - "QID33_7": "-3\nStrongly disagree", - "QID33_2": "-3\nStrongly disagree", - "QID33_8": "-3\nStrongly disagree", - "QID33_9": "-3\nStrongly disagree", - "QID34_7": "-3\nStrongly disagree", - "QID34_2": "-3\nStrongly disagree", - "QID34_8": "-3\nStrongly disagree", - "QID34_17": "-3\nStrongly disagree", - "QID40_7": "-3\nStrongly disagree", - "QID40_2": "-3\nStrongly disagree", - "QID40_8": "-3\nStrongly disagree", - "QID40_9": "-3\nStrongly disagree", - "QID41_7": "-3\nStrongly disagree", - "QID41_2": "-3\nStrongly disagree", - "QID41_19": "-3\nStrongly disagree", - "QID41_20": "-3\nStrongly disagree", - "QID41_21": "-3\nStrongly disagree", - "QID42_7": "-3\nStrongly disagree", - "QID42_2": "-3\nStrongly disagree", - "QID42_8": "-3\nStrongly disagree", - "QID44_21": "-3\nStrongly disagree", - "QID44_7": "-3\nStrongly disagree", - "QID44_2": "-3\nStrongly disagree", - "QID44_8": "-3\nStrongly disagree", - "QID45_24": "-3\nStrongly disagree", - "QID45_25": "-3\nStrongly disagree", - "QID45_26": "-3\nStrongly disagree", - "QID45_29": "-3\nStrongly disagree", - "QID46_27": "-3\nStrongly disagree", - "QID46_28": "-3\nStrongly disagree", - "QID46_29": "-3\nStrongly disagree", - "QID46_30": "-3\nStrongly disagree", - "QID46_31": "-3\nStrongly disagree", - "QID46_32": "-3\nStrongly disagree", - "QID46_33": "-3\nStrongly disagree", - "QID46_34": "-3\nStrongly disagree", - "QID46_36": "-3\nStrongly disagree", - "QID46_37": "-3\nStrongly disagree" - }, - "displayedFields": [ - "QID49_TEXT", - "QID35_2", - "QID37_2", - "QID33_7", - "QID33_8", - "QID33_9", - "QID35_7", - "QID35_8", - "QID37_7", - "QID66_TEXT", - "QID35_9", - "QID37_8", - "QID60_TEXT", - "QID46_27", - "QID46_28", - "QID70", - "QID37_20", - "QID37_21", - "QID37_22", - "QID48_TEXT", - "QID40_2", - "QID41_19", - "QID2_9", - "QID42_2", - "QID44_2", - "QID46_29", - "QID40_8", - "QID50_TEXT", - "QID40_7", - "QID42_8", - "QID40_9", - "QID42_7", - "QID44_8", - "QID44_7", - "QID61_TEXT", - "QID35_10", - "QID47_TEXT", - "QID34_2", - "QID36_2", - "QID34_7", - "QID34_8", - "QID36_7", - "QID36_8", - "QID36_9", - "QID63_TEXT", - "QID34_17", - "QID44_21", - "QID64_TEXT", - "QID59_TEXT", - "QID41_2", - "QID41_7", - "QID2_7", - "QID2_8", - "QID2_2", - "QID46_30", - "QID46_31", - "QID41_20", - "QID45_25", - "QID41_21", - "QID45_24", - "QID62_TEXT", - "QID46_36", - "QID65_TEXT", - "QID46_37", - "QID45_26", - "QID46_34", - "QID46_32", - "QID46_33", - "QID69", - "QID68", - "QID45_29", - "QID33_2" - ], - "displayedValues": { - "QID35_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_27": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_28": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID70": [ - 1, - 2, - 3 - ], - "QID37_20": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_21": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_22": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_19": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID42_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_29": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID42_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID42_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_10": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_17": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_21": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_30": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_31": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_20": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID45_25": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_21": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID45_24": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_36": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_37": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID45_26": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_34": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_32": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_33": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID69": [ - 1, - 2, - 3 - ], - "QID68": [ - 1, - 2, - 3 - ], - "QID45_29": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ] - } - }, - { - "responseId": "R_8QDm3UswqqJK2fj", - "values": { - "startDate": "2025-05-18T11:37:12Z", - "endDate": "2025-05-18T11:41:04Z", - "status": 0, - "ipAddress": "82.132.233.11", - "progress": 100, - "duration": 232, - "finished": 1, - "recordedDate": "2025-05-18T11:41:04.835Z", - "_recordId": "R_8QDm3UswqqJK2fj", - "locationLatitude": "51.6216", - "locationLongitude": "-0.055", - "distributionChannel": "anonymous", - "userLanguage": "EN", - "QID68": 1, - "QID69": 2, - "QID70": 3, - "QID35_7": 0, - "QID35_2": -1, - "QID35_8": 0, - "QID35_9": 1, - "QID35_10": 2, - "QID48_TEXT": "Tested by PJE", - "QID36_7": 1, - "QID36_2": 1, - "QID36_8": 0, - "QID36_9": -1, - "QID60_TEXT": "Yet more testing", - "QID37_7": -2, - "QID37_2": -1, - "QID37_8": 0, - "QID37_20": 1, - "QID37_21": 2, - "QID37_22": 3, - "QID59_TEXT": "Testing all boxes except Strongly disagree", - "QID2_7": -3, - "QID2_2": -2, - "QID2_8": -1, - "QID2_9": 0, - "QID47_TEXT": "Managing Strongly disagree", - "QID33_7": 3, - "QID33_2": -3, - "QID33_8": 3, - "QID33_9": -3, - "QID62_TEXT": "Random extremes", - "QID34_7": 3, - "QID34_2": 3, - "QID34_8": 3, - "QID34_17": 3, - "QID61_TEXT": "I always agree with my boss", - "QID40_7": -3, - "QID40_2": -3, - "QID40_8": -3, - "QID40_9": -3, - "QID49_TEXT": "My boss hasn't a clue!", - "QID41_7": -2, - "QID41_2": 2, - "QID41_19": 1, - "QID41_20": -1, - "QID41_21": 0, - "QID64_TEXT": "Random anything", - "QID42_7": -3, - "QID42_2": 3, - "QID42_8": -3, - "QID63_TEXT": "More extremes", - "QID44_21": 0, - "QID44_7": 0, - "QID44_2": 0, - "QID44_8": 0, - "QID50_TEXT": "I'm bored", - "QID45_24": 0, - "QID45_25": 0, - "QID45_26": 0, - "QID45_29": 0, - "QID66_TEXT": "Couldn't be bothered", - "QID46_27": 3, - "QID46_28": 3, - "QID46_29": 3, - "QID46_30": 3, - "QID46_31": 3, - "QID46_32": 3, - "QID46_33": 3, - "QID46_34": 3, - "QID46_36": 3, - "QID46_37": 3, - "QID65_TEXT": "Loads of impact!" - }, - "labels": { - "status": "IP Address", - "finished": "True", - "QID68": "Site 1", - "QID69": "Role 2", - "QID70": "Role 3", - "QID35_7": "0\nNeither agree nor disagree\n", - "QID35_2": "-1\n\nSomewhat disagree \n", - "QID35_8": "0\nNeither agree nor disagree\n", - "QID35_9": "+1\n\nSomewhat agree\n", - "QID35_10": "+2\nAgree\n \n", - "QID36_7": "+1\nSomewhat agree", - "QID36_2": "+1\nSomewhat agree", - "QID36_8": "0\nNeither agree nor disagree", - "QID36_9": "-1\nSomewhat disagree", - "QID37_7": "-2\nDisagree\n ", - "QID37_2": "-1\nSomewhat disagree", - "QID37_8": "0\nNeither agree nor disagree", - "QID37_20": "+1\nSomewhat agree", - "QID37_21": "+2\nAgree\n ", - "QID37_22": "+3\nStrongly\nagree", - "QID2_7": "-3\nStrongly disagree", - "QID2_2": "-2\nDisagree\n ", - "QID2_8": "-1\nSomewhat disagree", - "QID2_9": "0\nNeither agree nor disagree", - "QID33_7": "+3\nStrongly\nagree", - "QID33_2": "-3\nStrongly disagree", - "QID33_8": "+3\nStrongly\nagree", - "QID33_9": "-3\nStrongly disagree", - "QID34_7": "+3\nStrongly\nagree", - "QID34_2": "+3\nStrongly\nagree", - "QID34_8": "+3\nStrongly\nagree", - "QID34_17": "+3\nStrongly\nagree", - "QID40_7": "-3\nStrongly disagree", - "QID40_2": "-3\nStrongly disagree", - "QID40_8": "-3\nStrongly disagree", - "QID40_9": "-3\nStrongly disagree", - "QID41_7": "-2\nDisagree\n ", - "QID41_2": "+2\nAgree\n ", - "QID41_19": "+1\nSomewhat agree", - "QID41_20": "-1\nSomewhat disagree", - "QID41_21": "0\nNeither agree nor disagree", - "QID42_7": "-3\nStrongly disagree", - "QID42_2": "+3\nStrongly\nagree", - "QID42_8": "-3\nStrongly disagree", - "QID44_21": "0\nNeither agree nor disagree", - "QID44_7": "0\nNeither agree nor disagree", - "QID44_2": "0\nNeither agree nor disagree", - "QID44_8": "0\nNeither agree nor disagree", - "QID45_24": "0\nNeither agree nor disagree", - "QID45_25": "0\nNeither agree nor disagree", - "QID45_26": "0\nNeither agree nor disagree", - "QID45_29": "0\nNeither agree nor disagree", - "QID46_27": "+3\nStrongly\nagree", - "QID46_28": "+3\nStrongly\nagree", - "QID46_29": "+3\nStrongly\nagree", - "QID46_30": "+3\nStrongly\nagree", - "QID46_31": "+3\nStrongly\nagree", - "QID46_32": "+3\nStrongly\nagree", - "QID46_33": "+3\nStrongly\nagree", - "QID46_34": "+3\nStrongly\nagree", - "QID46_36": "+3\nStrongly\nagree", - "QID46_37": "+3\nStrongly\nagree" - }, - "displayedFields": [ - "QID49_TEXT", - "QID35_2", - "QID37_2", - "QID33_7", - "QID33_8", - "QID33_9", - "QID35_7", - "QID35_8", - "QID37_7", - "QID66_TEXT", - "QID35_9", - "QID37_8", - "QID60_TEXT", - "QID46_27", - "QID46_28", - "QID70", - "QID37_20", - "QID37_21", - "QID37_22", - "QID48_TEXT", - "QID40_2", - "QID41_19", - "QID2_9", - "QID42_2", - "QID44_2", - "QID46_29", - "QID40_8", - "QID50_TEXT", - "QID40_7", - "QID42_8", - "QID40_9", - "QID42_7", - "QID44_8", - "QID44_7", - "QID61_TEXT", - "QID35_10", - "QID47_TEXT", - "QID34_2", - "QID36_2", - "QID34_7", - "QID34_8", - "QID36_7", - "QID36_8", - "QID36_9", - "QID63_TEXT", - "QID34_17", - "QID44_21", - "QID64_TEXT", - "QID59_TEXT", - "QID41_2", - "QID41_7", - "QID2_7", - "QID2_8", - "QID2_2", - "QID46_30", - "QID46_31", - "QID41_20", - "QID45_25", - "QID41_21", - "QID45_24", - "QID62_TEXT", - "QID46_36", - "QID65_TEXT", - "QID46_37", - "QID45_26", - "QID46_34", - "QID46_32", - "QID46_33", - "QID69", - "QID68", - "QID45_29", - "QID33_2" - ], - "displayedValues": { - "QID35_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_27": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_28": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID70": [ - 1, - 2, - 3 - ], - "QID37_20": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_21": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID37_22": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_19": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID42_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_29": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID42_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID40_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID42_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID35_10": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID36_9": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID34_17": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID44_21": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_7": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_8": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID2_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_30": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_31": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_20": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID45_25": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID41_21": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID45_24": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_36": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_37": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID45_26": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_34": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_32": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID46_33": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID69": [ - 1, - 2, - 3 - ], - "QID68": [ - 1, - 2, - 3 - ], - "QID45_29": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ], - "QID33_2": [ - -3, - -2, - -1, - 0, - 1, - 2, - 3 - ] - } - } - ] -} \ No newline at end of file diff --git a/Questions.json b/Questions.json deleted file mode 100644 index 195d03d..0000000 --- a/Questions.json +++ /dev/null @@ -1,2 +0,0 @@ -{"meta":{"httpStatus":"200 - OK","requestId":"20317bbf-d7d7-4ae2-b041-6796991c0eab"}, -"result":{"elements":[{"QuestionText":"2. EO Approach
\nDevelop shared values and practices that empower employee owners to contribute to success. 
\n
\nA true sense of ownership drives behaviour change and unlocks the potential of individuals.
\nInvolving employee owners in developing shared values and practices that supports them to have a voice, unlocks enhanced levels of personal, team and organisational performance – including attracting and retaining the right talent to excel in your marketplace.

\n
\n
\nTo what extent are you leveraging the full potential of your ownership mindset and behaviours?
\n ","DefaultChoices":false,"DataExportTag":"Q20","QuestionType":"DB","Selector":"TB","Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"2. EO Approach Develop shared values and practices that empower employee owners to contribute to...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID1","DataVisibility":{"Private":false,"Hidden":false},"NextChoiceId":1,"NextAnswerId":1,"QuestionText_Unsafe":"2. EO Approach
\nDevelop shared values and practices that empower employee owners to contribute to success. 
\n
\nA true sense of ownership drives behaviour change and unlocks the potential of individuals.
\nInvolving employee owners in developing shared values and practices that supports them to have a voice, unlocks enhanced levels of personal, team and organisational performance – including attracting and retaining the right talent to excel in your marketplace.

\n
\n
\nTo what extent are you leveraging the full potential of your ownership mindset and behaviours?
\n "},{"QuestionText":"Name","DefaultChoices":false,"DataExportTag":"Q2","QuestionType":"TE","Selector":"SL","Configuration":{"QuestionDescriptionOption":"UseText","AllowFreeResponse":"false"},"QuestionDescription":"Name","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID19","DataVisibility":{"Private":false,"Hidden":false},"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionText_Unsafe":"Name"},{"QuestionText":"Great EO Culture","DefaultChoices":false,"DataExportTag":"Q21","QuestionID":"QID2","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","Configuration":{"QuestionDescriptionOption":"SpecifyLabel","TextPosition":"inline","ChoiceColumnWidth":25,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true,"ChoiceColumnWidthPixels":353},"QuestionDescription":"To what extent are you realising the full potential of your EO approach?Great EO Culture","Choices":{"2":{"Display":"Our people processes (recruitment, development, appraisal and reward) encourage and reward our desired owner behaviours"},"4":{"Display":"Our culture and people proposition retains the right talent in the business"},"7":{"Display":"Our people role model our desired owner behaviours"},"8":{"Display":"Our culture enables a safe environment for people to give feedback, voice concerns and share ideas"},"9":{"Display":"Our culture enables learning and growth"},"10":{"Display":"Our culture enables health and well-being"},"11":{"Display":"Our culture enables inclusion and diversity"}},"ChoiceOrder":["7",2,"8","9","10","11",4],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"DataVisibility":{"Private":false,"Hidden":false},"NextChoiceId":20,"NextAnswerId":49,"QuestionText_Unsafe":"Great EO Culture"},{"QuestionText":"Title","DefaultChoices":false,"DataExportTag":"Q3","QuestionType":"TE","Selector":"SL","Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Title","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID20","DataVisibility":{"Private":false,"Hidden":false},"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionText_Unsafe":"Title"},{"QuestionText":"Email address","DefaultChoices":false,"DataExportTag":"Q4","QuestionType":"TE","Selector":"SL","Configuration":{"QuestionDescriptionOption":"UseText","AllowFreeResponse":"false"},"QuestionDescription":"Email address","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID21","DataVisibility":{"Private":false,"Hidden":false},"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionText_Unsafe":"Email address"},{"QuestionText":"

The EO Framework for Great EO Business

\n\n

The EO Framework is rooted in research gathered from interviews with senior decision makers and employee owners on how they implement Great EO.
\nThis simple, structured model - developed with the support of sustainable success expert, Telos Partners - outlines the fundamentals vital for successful employee ownership across four key areas:
\n 

\n\n
1. EO Roles - Clearly defined EO roles with leaders, owners, and governance all understanding the part they play in making your EO a success.
\n​​​​2. EO Approach - A strong EO approach built on shared values and practices that empower employees to contribute to success.
\n3. EO Actions - that harness the full potential of employee owners to inform your strategy, innovation, and sustainability.
\n4. EO Results - a structured and consistent way of measuring and evolving the impact of your approach, roles, and actions. 
\n 
\n\n

This diagnostic, the Employee Ownership Quotient (eoQ), assesses the extent to which you are adopting best practice in these areas. 
\nIt should take 15-20 minutes to complete the questionnaire. 

","DefaultChoices":false,"DataExportTag":"Q1","QuestionID":"QID32","QuestionType":"DB","Selector":"TB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"The EO Framework for Great EO Business The EO Framework is rooted in research gathered from inter...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"QuestionText_Unsafe":"

The EO Framework for Great EO Business

\n\n

The EO Framework is rooted in research gathered from interviews with senior decision makers and employee owners on how they implement Great EO.
\nThis simple, structured model - developed with the support of sustainable success expert, Telos Partners - outlines the fundamentals vital for successful employee ownership across four key areas:
\n 

\n\n
1. EO Roles - Clearly defined EO roles with leaders, owners, and governance all understanding the part they play in making your EO a success.
\n​​​​2. EO Approach - A strong EO approach built on shared values and practices that empower employees to contribute to success.
\n3. EO Actions - that harness the full potential of employee owners to inform your strategy, innovation, and sustainability.
\n4. EO Results - a structured and consistent way of measuring and evolving the impact of your approach, roles, and actions. 
\n 
\n\n

This diagnostic, the Employee Ownership Quotient (eoQ), assesses the extent to which you are adopting best practice in these areas. 
\nIt should take 15-20 minutes to complete the questionnaire. 

"},{"QuestionText":"Great EO Engagement","DefaultChoices":false,"DataExportTag":"Q23","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great EO Engagement","Choices":{"2":{"Display":"Our managers help to ensure our planning process, goal setting and employee feedback channels enable people to influence decision making"},"7":{"Display":"Our managers help to ensure our people understand how and where decisions are made in the business"},"8":{"Display":"Our managers help to ensure our people understand clearly the connection between their behaviours and strategy, business performance and reward"},"9":{"Display":"Our managers help to ensure our people are encouraged and empowered to take responsbility for their own performance and contribution"}},"ChoiceOrder":["7",2,"8","9"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":21,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID33","QuestionText_Unsafe":"Great EO Engagement"},{"QuestionText":"Great EO Advantage","DefaultChoices":false,"DataExportTag":"Q25","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great EO Advantage","Choices":{"2":{"Display":"We are leveraging our EO status to help establish brand differentiation across key relationships, including leveraging our customer brand to provide a competitive advantage in our market presence and client relationships"},"7":{"Display":"We are leveraging our EO status to help establish brand differentiation across key relationships, including leveraging our employer brand to strengthen our people proposition and help attract talent"},"8":{"Display":"We are leveraging our EO status to help establish brand differentiation across key relationships, including leveraging our company brand to attract and retain high quality supplier relationships"}},"ChoiceOrder":["7",2,"8"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":17,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID34","QuestionText_Unsafe":"Great EO Advantage"},{"QuestionText":"Great Employee Owners","DefaultChoices":false,"DataExportTag":"Q14","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great Employee Owners","Choices":{"2":{"Display":"Our employee owners are committed to ensuring we become a stronger business"},"7":{"Display":"

Our colleagues clearly understand what is meant by an active owner mindset, including the rights and responsibilities of being employee owners

\n"},"8":{"Display":"Our employee owners understand how their actions help deliver the performance of the business"},"9":{"Display":"Our employee owners understand how their actions help deliver the successful execution of the strategy"},"10":{"Display":"Our employee owners understand how their actions help deliver the health of the organisational culture"}},"ChoiceOrder":["7",2,"8","9","10"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":21,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID35","QuestionText_Unsafe":"Great Employee Owners"},{"QuestionText":"Great Leaders","DefaultChoices":false,"DataExportTag":"Q16","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great Leaders","Choices":{"2":{"Display":"Our executive leaders have engaged our people in a cultural framework that sets out the organisational purpose, values, owner mindset and behaviours that will underpin our commercial success"},"7":{"Display":"Our executive leaders are committed to realising the potential of employee ownership"},"8":{"Display":"Our executive leaders have engaged our people in a vision and strategy that explicitly activates our EO model to help realise the true potential of the business"},"9":{"Display":"Our executive leaders are role models for our desired culture"}},"ChoiceOrder":["7",2,"8","9"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":19,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID36","QuestionText_Unsafe":"Great Leaders"},{"QuestionText":"Great Governance","DefaultChoices":false,"DataExportTag":"Q18","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great Governance","Choices":{"2":{"Display":"Our governance bodies work collaboratively and effectively with one another to protect and promote business success supported by a thriving ownership culture"},"7":{"Display":"

Our governance bodies clearly understand their respective roles in ensuring our EO model drives positive long-term outcomes for the business and all its stakeholders

\n"},"8":{"Display":"Our governance bodies include independent members who bring relevant experience (including of EO)"},"20":{"Display":"Our Chairs of governance bodies are effective in leveraging the diverse skills, experiences, views and opinions of members"},"21":{"Display":"Our governance helps ensure that benefits of ownership are fairly distributed and support owner mindset and behaviours"}},"ChoiceOrder":["7",2,"8","20","21"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":22,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID37","QuestionText_Unsafe":"Great Governance"},{"QuestionText":"1. EO Roles
\nDefine the responsibilities of leaders, owners, and governance and their role in your EO success.
\n
\nHaving the long-term best interests of the business at heart and the collective desire to leave it in the best place for future generations is the key to stewardship and is a shared role and responsibility across employee owners.
\n
\nTo what extent do your employee owners and those in governance roles understand their responsibility?
\nHow effectively do your leaders engage people in the cultural framework, vision and strategy?
\nIs decision-making focused on the long-term best interests of the organisation and its stakeholders?
","DefaultChoices":false,"DataExportTag":"Q13","QuestionType":"DB","Selector":"TB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"1. EO Roles Define the responsibilities of leaders, owners, and governance and their role in your...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"QuestionID":"QID38","QuestionText_Unsafe":"1. EO Roles
\nDefine the responsibilities of leaders, owners, and governance and their role in your EO success.
\n
\nHaving the long-term best interests of the business at heart and the collective desire to leave it in the best place for future generations is the key to stewardship and is a shared role and responsibility across employee owners.
\n
\nTo what extent do your employee owners and those in governance roles understand their responsibility?
\nHow effectively do your leaders engage people in the cultural framework, vision and strategy?
\nIs decision-making focused on the long-term best interests of the organisation and its stakeholders?
"},{"QuestionText":"3. EO Actions
\nHarness the full potential of employee voice to inform your strategy, innovation, and sustainability. 
\n
\nLeveraging the full potential of empowered and engaged employees in your organisation’s response to its evolving capabilities and external challenges can create agility and a drive from within to do what is needed.
\n
\nTo what extent are your employee owners able to see, understand and act on business need and how well are your leaders harnessing this EO advantage?
\n
\n ","DefaultChoices":false,"DataExportTag":"Q27","QuestionType":"DB","Selector":"TB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"3. EO Actions Harness the full potential of employee voice to inform your strategy, innovation, a...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"QuestionID":"QID39","QuestionText_Unsafe":"3. EO Actions
\nHarness the full potential of employee voice to inform your strategy, innovation, and sustainability. 
\n
\nLeveraging the full potential of empowered and engaged employees in your organisation’s response to its evolving capabilities and external challenges can create agility and a drive from within to do what is needed.
\n
\nTo what extent are your employee owners able to see, understand and act on business need and how well are your leaders harnessing this EO advantage?
\n
\n "},{"QuestionText":"Great Strategy","DefaultChoices":false,"DataExportTag":"Q28","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great Strategy","Choices":{"2":{"Display":"Our key markets provide sufficient scope for the ongoing success of the organisation and we are clear how EO will help us achieve that"},"7":{"Display":"Our vision clearly defines success for our employee owners alongside other key stakeholders"},"8":{"Display":"Our strategy builds upon our purpose, values and our unique strengths including our EO model"},"9":{"Display":"Our strategy clearly sets out the key initiatives that will ensure our employee owners can deliver success, mitigate weaknesses and optimise the use of our scarcest resources"}},"ChoiceOrder":["7",2,"8","9"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":19,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID40","QuestionText_Unsafe":"Great Strategy"},{"QuestionText":"Great Innovation","DefaultChoices":false,"DataExportTag":"Q30","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great Innovation","Choices":{"2":{"Display":"Our employee owners contribute ideas and suggestions that both improve products/services for customers and reduce costs to drive efficiency"},"7":{"Display":"Our employee owners have a mindset that actively drives growth and continuous improvement of the organisation"},"19":{"Display":"We ensure our employee owners understand how their business works to help promote well-informed ideas and innovation"},"20":{"Display":"We provide clear channels and processes to ensure new ideas and suggestions are captured, considered and fed back on"}},"ChoiceOrder":["7",2,"19","20"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":21,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID41","QuestionText_Unsafe":"Great Innovation"},{"QuestionText":"Great Resilience","DefaultChoices":false,"DataExportTag":"Q32","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":353,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great Resilience","Choices":{"2":{"Display":"Our emplyee owners actively manage risk and protect and enhance the organisation’s reputation and impact"},"7":{"Display":"During challenging times, we balance current and future interests of our employee owners and our organisation"},"8":{"Display":"As an employee-owned business, we ensure we embed learnings from challenging times to support future resilience"},"9":{"Display":"Our culture enables every leader, manager and specialist role to think of, discuss, and develop candidates for their own succession"}},"ChoiceOrder":["7",2,"8","9"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":19,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID42","QuestionText_Unsafe":"Great Resilience"},{"QuestionText":"4. EO Results
\nMeasuring and evolving the impact of your EO approach, roles, and actions.
\n
\nAdopting a structured and consistent way of measuring and evolving the impact of your approach, roles, and actions. An organisation is a product of its relationships, not the sum of its transactions. Resilient, successful organisations deliver balanced and enhanced results across all stakeholders.
\n
\nTo what extent are you delivering best in class performance across a balanced scorecard of results?","DefaultChoices":false,"DataExportTag":"Q34","QuestionType":"DB","Selector":"TB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"4. EO Results Measuring and evolving the impact of your EO approach, roles, and actions. Adopting...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"QuestionID":"QID43","QuestionText_Unsafe":"4. EO Results
\nMeasuring and evolving the impact of your EO approach, roles, and actions.
\n
\nAdopting a structured and consistent way of measuring and evolving the impact of your approach, roles, and actions. An organisation is a product of its relationships, not the sum of its transactions. Resilient, successful organisations deliver balanced and enhanced results across all stakeholders.
\n
\nTo what extent are you delivering best in class performance across a balanced scorecard of results?"},{"QuestionText":"Great EO measurement","DefaultChoices":false,"DataExportTag":"Q35","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidth":25,"ChoiceColumnWidthPixels":197,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great EO measurement","Choices":{"2":{"Display":"We are benchmarking our performance across a full range of stakeholders, including customers"},"7":{"Display":"We are benchmarking our performance across a full range of stakeholders, including employee owners"},"8":{"Display":"We are benchmarking our performance across a full range of stakeholders, including suppliers"},"9":{"Display":"We are benchmarking our performance across a full range of stakeholders, including the environment"},"20":{"Display":"We are benchmarking our performance across a full range of stakeholders, including our community"},"21":{"Display":"We are confident that we are capturing data that tells us how well EO is delivering benefits for the organisation and its employee owners"}},"ChoiceOrder":["21","7",2,"8","9","20"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":22,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID44","QuestionText_Unsafe":"Great EO measurement"},{"QuestionText":"Great EO evaluation","DefaultChoices":false,"DataExportTag":"Q37","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidthPixels":197,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great EO evaluation","Choices":{"24":{"Display":"We are using data-driven insights to enhance how we empower employee owners to contribute to and benefit from organisational success "},"25":{"Display":"We are using data-driven insights to enhance how our leaders ensure EO delivers strategic advantage to the organisation"},"26":{"Display":"We are using data-driven insights to enhance how our leaders promote innovation and resilience actions"},"29":{"Display":"We are using data-driven insights to enhance how our governance bodies play their roles effectively"}},"ChoiceOrder":["24","25","26","29"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":30,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID45","QuestionText_Unsafe":"Great EO evaluation"},{"QuestionText":"Great EO impact","DefaultChoices":false,"DataExportTag":"Q39","QuestionType":"Matrix","Selector":"Likert","SubSelector":"SingleAnswer","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","TextPosition":"inline","ChoiceColumnWidthPixels":197,"RepeatHeaders":"none","WhiteSpace":"OFF","MobileFirst":true},"QuestionDescription":"Great EO impact","Choices":{"27":{"Display":"We can demonstrate that our EO model is contributing to enhanced productivity and performance"},"28":{"Display":"We can demonstrate that our EO model is contributing to greater profitability"},"29":{"Display":"We can demonstrate that our EO model is contributing to stronger ideas from colleagues"},"30":{"Display":"We can demonstrate that our EO model is contributing to recruiting and holding on to talent"},"31":{"Display":"We can demonstrate that our EO model is contributing to better health and well-being for our employee owners"},"32":{"Display":"We can demonstrate that our EO model is contributing to a more skilled workforce"},"33":{"Display":"We can demonstrate that our EO model is contributing to greater equality of opportunity at work"},"34":{"Display":"We can demonstrate that our EO model is contributing to greater local community benefits"},"35":{"Display":"We can demonstrate that our EO model is contributing to a more sustainable business and ecological environment"}},"ChoiceOrder":["27","28","29","30","31","32","33","34","35"],"Validation":{"Settings":{"ForceResponse":"ON","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"41":"-3","42":"-2","43":"-1","44":"0","45":"1","46":"2","47":"3"},"GradingData":[],"Language":[],"NextChoiceId":36,"NextAnswerId":49,"Answers":{"41":{"Display":"-3
\nStrongly disagree
"},"42":{"Display":"-2
\nDisagree

\n "},"43":{"Display":"-1
\nSomewhat disagree
"},"44":{"Display":"0
\nNeither agree nor disagree
"},"45":{"Display":"+1
\nSomewhat agree
"},"46":{"Display":"+2
\nAgree

\n "},"47":{"Display":"+3
\nStrongly
\nagree
"}},"AnswerOrder":["41","42","43","44","45","46","47"],"ChoiceDataExportTags":false,"QuestionID":"QID46","QuestionText_Unsafe":"Great EO impact"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q22","QuestionID":"QID47","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q15","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID48","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q29","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID49","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q36","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID50","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Job title","DefaultChoices":false,"DataExportTag":"Q5","QuestionType":"TE","Selector":"SL","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Job title","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID51","QuestionText_Unsafe":"Job title"},{"QuestionText":"Job function (tick all that apply)","DefaultChoices":false,"DataExportTag":"Q6","QuestionID":"QID52","QuestionType":"MC","Selector":"MAHR","SubSelector":"TX","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText","LabelPosition":"BELOW"},"QuestionDescription":"Job function (tick all that apply)","Choices":{"1":{"Display":"Director"},"2":{"Display":"Manager"},"3":{"Display":"Trustee"},"4":{"Display":"Employee Rep"}},"ChoiceOrder":["1","2","3","4"],"Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":5,"NextAnswerId":1,"QuestionText_Unsafe":"Job function (tick all that apply)"},{"QuestionText":"Job title of the person you report to","DefaultChoices":false,"DataExportTag":"Q7","QuestionType":"TE","Selector":"SL","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Job title of the person you report to","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID53","QuestionText_Unsafe":"Job title of the person you report to"},{"QuestionText":"Department (e.g. finance, operations, sales)","DefaultChoices":false,"DataExportTag":"Q8","QuestionType":"TE","Selector":"SL","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Department (e.g. finance, operations, sales)","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID54","QuestionText_Unsafe":"Department (e.g. finance, operations, sales)"},{"QuestionText":"Years since joined the company","DefaultChoices":false,"DataExportTag":"Q9","QuestionType":"TE","Selector":"SL","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Years since joined the company","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID55","QuestionText_Unsafe":"Years since joined the company"},{"QuestionText":"Location","DefaultChoices":false,"DataExportTag":"Q10","QuestionType":"TE","Selector":"SL","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Location","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID56","QuestionText_Unsafe":"Location"},{"QuestionText":"Gender","DefaultChoices":false,"DataExportTag":"Q11","QuestionType":"TE","Selector":"SL","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Gender","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID57","QuestionText_Unsafe":"Gender"},{"QuestionText":"Age","DefaultChoices":false,"DataExportTag":"Q12","QuestionType":"TE","Selector":"SL","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Age","Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":1,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID58","QuestionText_Unsafe":"Age"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q19","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID59","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q17","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID60","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q26","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID61","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q24","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID62","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q33","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID63","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q31","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID64","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q40","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID65","QuestionText_Unsafe":"Please add any additional comments:"},{"QuestionText":"Please add any additional comments:","DefaultChoices":false,"DataExportTag":"Q38","QuestionType":"TE","Selector":"ESTB","DataVisibility":{"Private":false,"Hidden":false},"Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please add any additional comments:","Validation":{"Settings":{"ForceResponse":"OFF","Type":"None"}},"GradingData":[],"Language":[],"NextChoiceId":4,"NextAnswerId":1,"SearchSource":{"AllowFreeResponse":"false"},"QuestionID":"QID66","QuestionText_Unsafe":"Please add any additional comments:"}]}}" diff --git a/get_text_data.html b/get_text_data.html new file mode 100644 index 0000000..e47ed2e --- /dev/null +++ b/get_text_data.html @@ -0,0 +1,58 @@ + + + + + Form Submit Example + + + + +
+ +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + + + + + + diff --git a/get_text_data.php b/get_text_data.php new file mode 100644 index 0000000..afdbabf --- /dev/null +++ b/get_text_data.php @@ -0,0 +1,107 @@ + 'Missing QID parameter']); + exit; + } + $qid = $_POST['qid']; + $input = $_POST['survey'] ?? ''; + + + if (preg_match('/^SV_[a-zA-Z0-9]+$/', $input)) { + // Input is valid + $survey = $input; + } else { + // Invalid format + die("Invalid survey ID format."); + } + + $q1 = filter_input(INPUT_POST, 'Q1', FILTER_VALIDATE_INT); + $q2 = filter_input(INPUT_POST, 'Q2', FILTER_VALIDATE_INT); + $q3 = filter_input(INPUT_POST, 'Q3', FILTER_VALIDATE_INT); + +} + +$qualifier = " AND s.surveyId = '${survey}'"; + + +if ($q1 > 0) { + $qualifier.=" AND r.Q1 = " . $q1; + +} + +if ($q2 > 0) { + $qualifier.=" AND r.Q2 = " . $q2; +} + +if ($q3 > 0) { + $qualifier.=" AND r.Q3 = " . $q3; +} + + +// Database connection (adjust credentials accordingly) +// +$config = require 'config.php'; +$host = $config['db_host']; +$db = $config['db_name']; +$user = $config['db_user']; +$pass = $config['db_pass']; +$charset = 'utf8mb4'; + +$dsn = "mysql:host=$host;dbname=$db;charset=$charset"; +$options = [ + PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, + PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, +]; + +try { + $pdo = new PDO($dsn, $user, $pass, $options); + + $sql = " + SELECT + a.text + FROM Answers a + INNER JOIN Responses r ON a.responseId = r.id + INNER JOIN Surveys s ON a.surveyId = s.id + WHERE a.QID = :qid + ".$qualifier; + +// echo $sql; + + $stmt = $pdo->prepare($sql); + $stmt->execute(['qid' => $qid]); + $results = $stmt->fetchAll(); + + $json = json_encode($results); + echo $json; + + if ($json === false) { + echo json_last_error_msg(); + } + +} catch (PDOException $e) { + echo json_encode(['error' => 'Database error: ' . $e->getMessage()]); + exit; +} + + + + + + + + + + +