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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

  • 97b085b committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • e5e627d committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 715f140 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • cc019ee committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 33d23b7 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • e565ccf committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 431a3e6 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • caabcb6 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 67d2996 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 2cfb261 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • c7a1123 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • b61e42f committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 398e124 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 2599b27 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 53d92ba committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
jrockowitz’s picture

Status: Active » Needs review
FileSize
57.65 KB

The attached patch has no test coverage.

  • 7b25443 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • bdc241f committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 9332fe6 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 6d730cb committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 8d0652a committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
  • e63a919 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 13ef1a4 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
  • 9d7c9b9 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • f28a563 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 9ebc8a9 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 4f7d2e2 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
jrockowitz’s picture

  • 2cf79a5 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 899ce17 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • fbf5a70 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 826e37f committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 8ce9d95 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • df070b2 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 3c41466 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
jrockowitz’s picture

  • 2536b27 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
jrockowitz’s picture

jrockowitz’s picture

  • 14bbde7 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
jrockowitz’s picture

  • 239667e committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 86a1b52 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 5a9e0f6 committed on 3137964-webform-share
    Issue #3137964: Make it easier to embed/share a webform on an external...
jrockowitz’s picture

  • jrockowitz authored 2a86a22 on 8.x-5.x
    Issue #3137964 by jrockowitz: Make it easier to embed/share a webform on...
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz authored 5b0621f on 8.x-5.x
    Issue #3137964 by jrockowitz: Make it easier to embed/share a webform on...

  • fe56fd1 committed on 8.x-5.x
    Issue #3137964: Make it easier to embed/share a webform on an external...
cf74’s picture

I 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

  • jrockowitz authored 3c1b654 on 8.x-5.x
    Issue #3137964 by jrockowitz: Make it easier to embed/share a webform on...

  • jrockowitz authored 3c1b654 on 6.x
    Issue #3137964 by jrockowitz: Make it easier to embed/share a webform on...

  • 22052c4 committed on 8.x-5.x
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 22052c4 committed on 6.x
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 22052c4 committed on 8.x-5.x
    Issue #3137964: Make it easier to embed/share a webform on an external...

  • 22052c4 committed on 6.x
    Issue #3137964: Make it easier to embed/share a webform on an external...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.