Set up the code to generate a link to the Qualtrics survey from within the learning module:
  1. This function adds parameters based on variables that exist on the page to the end of the qualtrics survey link.

    These variables are exposed in the code for the modules2010-02-05_14.57.55.jpeg 

  2. The link to the Qualtrics survey form is built in javascript, appending the current page location, title and email to the end of the URL   2010-02-05_14.59.25.jpeg
  3. The printFeedbackLInk() function is called when the navbar for the module is built with Javascript:
    2010-02-05_14.59.51.jpeg


  4. This shows the path generated by the javascript - URL, title and email are all appended to the survey link.The added parameters are URL, TITLE and EMAIL. 
    2010-02-05_15.07.29.jpeg


  5. Open and edit the survey in Qualtrics. 2010-02-05_14.54.34.jpeg
  6. Click Survey Flow.
    2010-02-05_15.01.24.jpeg
  7. Click "Add Below" to add another step. Click Embedded Data. 
    2010-02-05_15.03.10.jpeg

  8. Add the parameter names used in your survey link. 

    2010-02-05_15.03.42.jpeg
  9. In this case I've added URL, TITLE, and EMAIL.

    2010-02-05_15.02.28.jpeg

  10. Now set up the email trigger to email the feedback to the author of the learning module. Click the Advanced Options dropdown.
    2010-02-05_15.51.24.jpeg
  11. Select Email Triggers...
    2010-02-05_15.51.47.jpeg


  12. Set up a rule to send an email to the author. I've added a check that the value of EMAIL looks like an email address. 
    To do this select If Embedded Data EMAIL is Matches Regex [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
    additional, more sophisticated regex validation for email addresses are available <a href="http://www.regular-expressions.info/email.html ">HERE</a>.
    Click Finish Editing and then Save Triggers.


  13. 2010-02-05_16.04.33.jpeg

  14. Make the title of the learning module show up in the survey itself. Create a Descriptive Block type question, with Rich Text format.
    Picture 24.jpg

  15. In the toolbar of the editing window, click the {a} icon. Select Embeded Data Field and type the name of the field you want to display within the block of text. In this case it is TITLE.


    2010-02-05_15.05.27.jpeg

  16. Clicking Insert will drop some code into your question.

    2010-02-05_15.04.40.jpeg
  17. Close the editing window to save the change.

    2010-02-05_15.06.11.jpeg

    This is what the user will see 

    2010-02-05_15.09.12.jpeg