Widget Quickstart Guide

Widgets are small snippets of javascript code that can be dropped into any website or web application with little to no coding required and are a great way to access the Qrvey platform for less-customized applications. Widgets require that you first have access Qrvey API.  

 

Widget Types

Qrvey currently offers three basic widget types of all of our existing applications:

- Create widgets allow users to create new surveys, quizzes, polls, NPS and other qrveys.  

- Collect widgets allow users to answer existing surveys, quizzes, polls, NPS and other qrveys.

- Results widgets display the interactive results for an active or completed qrvey.  

 

Using Widgets

Widgets can be added to any webpage with a single line of HTML in the <body> of your page.

 

<qrvey-nps-results data="NPSConfig"></qrvey-nps-results>

 

You will also need to add the following two javascripts to your page. The first script will call the widget you wish to use. In this example, we're calling the results widget for NPS. 

 

<script type="text/javascript" 
src="https://cdn.qrvey.com/widget/v2/nps/nps-results.js"></script>

 

The second script you need to add will include the data for your widget, including your API key, user information and the ID for the particular qrvey you'd like to display.

 

<script type='text/javascript'>//<![CDATA[
window.onload=function(){
window.NPSConfig = {
 apikey : "00000000-0000-0000-0000-00000000",
   user_id : "EkRoZ0M",
   qrvey_id : 'F8TGHVT',
   domain : "https://api.qrvey.com",
   version: "v2"
 }
}//]]>

 

To see all of these options in action, you can explore this link: http://jsfiddle.net/qrvey/72zq8ddx/ and if you have any questions about how to add widgets to your page or application, please contact support and we'll be happy to assist you.