Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed office form via iframe

Tags:

html

iframe

I was wondering that why the office form cannot be embedded into iframe perfectly.

Like the following code

<iframe src="https://forms.office.com/Pages/ResponsePage.aspx?id=Ix5rlILy0USDoDcUdHBCThkWvcx4TptKrO0BZZzx9edUMzFRTDdOMTk1NThIMEs1WFFSNzBWNFdFUi4u" style="height: 300px;">
  <p>Have you completed the survey?.</p>
</iframe>

https://jsfiddle.net/n7e3wv6v/

It only displays the pop-up link, the users have to click the link and then fill the question on the pop-up page which is not convenient.

Is there a way to embed the whole form?

like image 971
Coda Chang Avatar asked Oct 25 '25 12:10

Coda Chang


1 Answers

Make the height and width of iframe >= 350.

<iframe src="https://forms.office.com/Pages/ResponsePage.aspx?id=Ix5rlILy0USDoDcUdHBCThkWvcx4TptKrO0BZZzx9edUMzFRTDdOMTk1NThIMEs1WFFSNzBWNFdFUi4u" height="350" width="350"> 

</iframe>

This works! below 350 dimension it doesn't. https://jsfiddle.net/qnsj1k3o/2/

like image 198
Anmol Avatar answered Oct 27 '25 02:10

Anmol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!