Skip to content

Beautiful Open-Source Form Builder

update iframe code for email (#471)

Chirag Chhatrala40f460e12268
diff --git a/resources/views/mail/form/created.blade.php b/resources/views/mail/form/created.blade.php
index 661deb8ab..11bd3026e 100644
--- a/resources/views/mail/form/created.blade.php
+++ b/resources/views/mail/form/created.blade.php
@@ -12,7 +12,8 @@ If you want to share your form, here is the link:
If you want to embed your form to your website, copy and paste the following code:
@component('mail::panel')
-{{ '<iframe style="border:none;width:100%;" height="620px" src="'.$form->share_url.'"></iframe>' }}
+{{ '<iframe style="border:none;width:100%;" id="form-'.$form->slug.'" src="'.$form->share_url.'"></iframe>
+ <script type="text/javascript" onload="initForm(\''.$form->slug.'\')" src="'.front_url("widgets/iframe.min.js").'"></script>' }}
@endcomponent
Finally, we created a **Discord channel** with all the other users to share our news and guides about OpnForm.
@@ -22,4 +23,4 @@ I would love to see you there, here is the link:
Discord Channel
@endcomponent
-@endcomponent
+@endcomponent
\ No newline at end of file