Code demo

Trigger an inline survey

The demo uses either an anonomous web survey link or a web survey link including background information.

Code

<!-- put in head --> <link href="https://dm.quicksearch.se/quicksearch.websurvey.css" rel="stylesheet"> <!-- /put in head --> <script src="https://dm.quicksearch.se/quicksearch.dialoglink.js"></script> <script src="https://dm.quicksearch.se/quicksearch.websurvey.js"></script> <script> var dialogLinkConfig = { "data" : { "first_name" : "John", "last_name" : "Doe", "mobile_phone" : "555-123456", "extraField1" : "Summer campaign", "extraField2" : "Product1;Product2;Product3", "extraField3" : "Good customer" } }; var webSurveyConfig = { "Width": 1000, "Height" : 300, "Position" : "inline", "ContainerId" : "MySurveyGoesHere" }; Quicksearch.WebSurvey(Quicksearch.DialogLink("492A95B4Z13A6", dialogLinkConfig), webSurveyConfig); </script>

Result

A survey will be loaded in the small area below