az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Support embedding of Webforms #2328

Open akslay opened 1 year ago

akslay commented 1 year ago

Motivation

The Drupal 7 version of Quickstart allowed us to embed Webforms as blocks/entities/etc. While this is possible in Drupal 9, it makes the parent node uneditable if your Webform has required fields. We need a path forward for this as a feature parity for sites that are being migrated that are not moving to Qualtrics for their forms.

Example: https://capla.arizona.edu/academics/courses

Recommendation was to create a new Quickstart module that can be turned on and off, and perform the following:

  1. Use the patch for entity embed
  2. Edit the embed button for content adding webform and change the preview plugin to preview (functionality provided by the patch)
  3. Add a new preview view mode for all node types

(getting more details from @trackleft )

https://www.drupal.org/files/issues/2022-10-27/entity_embed-2882866-35.patch From this issue https://www.drupal.org/project/entity_embed/issues/2882866

joeparsons commented 1 year ago

Related webform module issue: https://www.drupal.org/project/webform/issues/3009773

Found that this module referenced in that issue did not provide a solution: https://www.drupal.org/project/webform_media