Any questions

We are happy to help!

Question about Gecko Booking?

If you are unsure whether Gecko Booking is right for you, or if you have other questions, we would love to hear from you!

All good!
Please enter your name.
All good!
Please enter your email.
All good!
All good!
Please enter your question.

Fields marked with an * are required


Guides

Trin for trin-vejledninger til opsætning og brug af systemet.

Guides - Questionnaire: Finish/edit

Questionnaire: Finish/edit

This webhook can be used to send a customer's questionnaire answer when the answer is completed, and when a completed answer is subsequently edited.

Under "Run at" you choose whether the webhook should run on "Completion of questionnaire", on "Edit of completed questionnaire" or both. Under "Questionnaire(s)" you choose whether it should apply to answers to all questionnaires or only to specific questionnaires.

When an answer is completed or edited, the webhook is added to a queue that is processed every 5 minutes. It can therefore take up to about 5 minutes before the webhook is sent. Answers created or edited through the API do not trigger this webhook.

Example of JSON that can be sent:


		{
"action": "COMPLETED",
"questionnaireAnswerId": [questionnaireAnswerId],
"questionnaire": {
"questionnaireId": [questionnaireId],
"questionnaireName": "[questionnaireName]"
},
"customer": {
"customerId": [customerId]
},
"answerList": [
[each_question_begin]
{
"fieldId": [questionAnswerFieldId],
"fieldName": "[questionName]",
"answer": "[questionAnswer]",
"answerValue": "[questionAnswerNumeric]"
}[lineBreak]
[each_question_end]
]
}

The webhook cannot itself tell whether the answer has just been completed or edited. If you want to tell them apart, create two webhooks, one with "Completion of questionnaire" and one with "Edit of completed questionnaire", and write a fixed text in "action", for example "COMPLETED" in one and "EDITED" in the other.


The replacement codes in the example above will be replaced with the following data when the specific webhook runs:

  • [questionnaireAnswerId] is replaced with the unique Id of the customer's answer to the questionnaire.
  • [questionnaireId] is replaced with the unique Id of the questionnaire.
  • [questionnaireName] is replaced with the name of the questionnaire.
  • [customerId] is replaced with the customer's unique Id.

Between [each_question_begin] and [each_question_end] the content is repeated once for each question in the questionnaire. The following codes can be used here:

  • [questionAnswerFieldId] is replaced with the unique Id of the question in the questionnaire.
  • [questionName] is replaced with the text of the question.
  • [questionAnswer] is replaced with the customer's answer. If the question is a choice, for example a list or checkbox, it is the text of the selected answer.
  • [questionAnswerNumeric] is replaced with the numeric value attached to the selected answer. If the answer has no numeric value, or the question is for example a text field, it is empty, and it is therefore in quotation marks in the example.
  • [lineBreak] is placed after each question and makes sure that a comma is inserted automatically between the questions in the JSON, but not after the last one.

In addition to the above, you can use the replacement codes for Customer, which apply to the customer who answered the questionnaire.


 


Try a Free and Non-Binding Demo of Gecko Booking & Administration

Fill out the form, and you will receive a demo as soon as possible.

All good!
Please enter the company name.
All good!
Please enter your phone number.
All good!
Please enter your name.

Fields marked with an * are required