Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Sites should be able to embed/share a webform with an external website
Proposed resolution
Make it easier to embed/share a webform on an external website using an iframe.
Notes
- Embed settings path should be /admin/structure/webform/manage/{webform_id}/share/(settings|embed)
- Embed iframe src should be /webform/{webform_id}/embed
- Embed should support Iframe with and without JavaScript
- Embed JavaScript should be as simple as possible.
- Use https://github.com/davidjbradshaw/iframe-resizer
Remaining tasks
- Create webform_share module
- Define webform_share third party settings (status, theme, etc...)
- Define routes and local tasks
- Add 'Share' with 'Setting' and Test' tasks.
- Build Settings Form with embed code snippet should generate using Ajax
- Settings should support source entity type and id and prepopulate query string parameters.
User interface changes
New Share table and share display
API changes
N/A
Data model changes
N/A
Release notes snippet
TBD (maybe a blog post)
Comment | File | Size | Author |
---|---|---|---|
#44 | 3137964-44.patch | 319.8 KB | jrockowitz |
| |||
#40 | 3137964-39.patch | 318.52 KB | jrockowitz |
| |||
#38 | 3137964-38.patch | 318.3 KB | jrockowitz |
| |||
#37 | 3137964-37.patch | 0 bytes | jrockowitz |
#35 | 3137964-35.patch | 318.29 KB | jrockowitz |
|
Comments
Comment #17
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe attached patch has no test coverage.
Comment #27
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #35
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #37
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #38
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #40
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #44
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #46
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #49
cf74 CreditAttribution: cf74 commentedI would like to embed a Drupal webform in Google Dialogflow repsonses using an iframe for admission chatbot.
Dialogflow repsonses accepts html iframe tag, but not javascript.
I can embed Google Form in Dialogflow text responses.
Thanks,
cf74