Generate Google Forms from RMarkdown
The objective of this package is to make it easy to create Google Forms using an R Markdown file.
---
followed by the question type appended with &
to separate questions.create_quiz
on your quiz file.Here is some sample code showing how to do it
onload
in iframe.<script type="text/javascript">var submitted=false;</script>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted){window.location='http://www.morningcopy.com.au/tutorial/redux/thankyou.html';}">
</iframe>
<!--END OF CONFIRMATION PAGE REDIRECT-->
<!--GOOGLE FORM-->
<form action="http://spreadsheets.google.com/formResponse?key=pqbhTz7PIHum_4qKEdbUWVg&embedded=true" method="post" target="hidden_iframe" onsubmit="submitted=true;">
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.