How to embed microsoft form survey into my R Markdown website

I tried to copy the script and paste in my R Markdown:

---
title: "survey"
output: html_document
---
<iframe width="640px" height= "480px" src= "https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAANAAf8RdFJUNlA2UUgwQ1dCSkZTSzJYWjJHRjVCVjQ0VC4u&embed=true" frameborder= "0" marginwidth= "0" marginheight= "0" style= "border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>

<div id=surveyDiv>
  <script>
	 window.addEventListener('load', function () {
            renderSurvey("surveyDiv");
        }, false);
  </script>
</div>

but it didn't work.

Can anyone help me?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.