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

Links for "{{version.survey.name}}"

Latest Version of "{{version.survey.name}}"

Direct Link

The following is a link for users to answer the latest version of the "{{version.survey.name}}" survey:

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

Embed Survey in IFRAME

To insert the latest version of "{{version.survey.name}}" onto an existing web page, use 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_latest_url}}');
</script>
Version {{version.version_num}} of "{{version.survey.name}}"

Link to Specific Survey Version

The following is a link for users to answer version #{{version.version_num}} of the "{{version.survey.name}}" survey:

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

Embed Survey in IFRAME

To insert the version #{{version.version_num}} of "{{version.survey.name}}" onto an existing web page, use 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 %}