{% extends "dform/base.html" %} {% load staticfiles %} {% block title %}{{title}}{% endblock title %} {% block contents %}

{{title}}

Link to Survey

The following is a link to a stand-alone survey page.

<a href="{{survey_url}}">{{version.survey.name}}</a>

Embed Survey in IFRAME

If you wish to embed your survey on an existing web page, this can be done using the pym.js library and a IFRAME. Copy the code below into the area where you wish to insert the survey and pym.js will take care of the rest for you.

<div id="dform1"></div>
<script type="text/javascript" src="{{pym_url}}"></script>

<script>
  var p = new pym.Parent('dform1', '{{embedded_survey_url}}');
</script>
{% endblock contents %}