Survey Post Button

Learn how to push data from your survey to a target URL using the POST request method

The Survey Post button feature enables you to push data from your survey’s questions and answers to a target URL link of your choice in a synchronous mode, using the POST request method.

To push the data from your survey to a subsequent URL, the first step is to Label relevant questions and answer choices of the survey for which you would like corresponding data to be passed to the target URL.

To label the elements, navigate to the Configure tab inside the Survey Editor and click on the Labels tab. Here is where you will label the questions and answers contained in your survey. Note, the labels applied here will determine how the data is labelled when received by the target URL so it's best to choose labels that will easily help you recognize the data that has been collected and passed outside of Segmanta’s platform and be usable for the end-user as well.

Next, you will need to assign a target URL to the Survey Post button. To do so, navigate to the survey’s Ending Page and follow the steps below:

  1. Click on the Settings.
  2. Toggle on the Survey Post button.
  3. Click on the Survey Post button to trigger its options setting, where you can configure the Caption and the target URL that you would like to send the data to. Note: The target URL must be HTTPS to enforce encryption of potentially sensitive data, and the editor will not save without it.

Once a respondent clicks on the Survey Post button in your survey’s Ending Page, data from the labelled questions and answers will be sent to the target URL via POST method.

IMPORTANT:

The data will be sent only if a user clicks on the Survey Post button. Should a user reach the Ending Page and decide to not click on the button, the data will not be POSTED to the target URL.

Data Structure

The receiving page receives a group of POST variables that look like the following (formatted as JSON):

{
“{{question_label_1}}”:”{{answer_1}}”,
“{{question_label_2}}”:”{{answer_2}}”,
“{{question_label_2}}”:”{{answer_3}}”,
“sppp”: {
“{{question_label_1}}”:”{{answer_1}}”,
“{{question_label_2}}”:”{{answer_2}}”,
“{{question_label_2}}”:”{{answer_3}}”,
}
}

 

Note: In the payload, there is a reserved parameter “sppp”, which is a special accessor where all POSTed data can be accessed.