I want to add webforms as group content. After installing webforms I went to available content page and installed them there. I set the permissions, but I don't seem to get an option to create one in Group Operations.

Comments

magpie5212 created an issue. See original summary.

kristiaanvandeneynde’s picture

Explain Webform 8 to me please. Does it still piggyback on top of nodes or does it use its own entity type now?

magpie5212’s picture

Not sure I am experienced enough with Drupal 8 to know the difference. The webform turns up as a content type along-side Basic Page and Article.

This may not be a problem any more as a Webform can be put in as a field in a Basic Page so I can just add the form I want at the bottom of a page.

ericras’s picture

A webform is now a Config Entity (ConfigEntityBundleBase). The webform node/content type is provided by a submodule. It has a field called 'webform' which is a wrapper around an entity reference.

So currently with Group, you can enable the Webform content type as group content but when you create a node you can only reference pre-existing forms made by someone with the proper permission. That is, a user with only Group-level access can not make a new form.

ericras’s picture

imclean’s picture

Ideally the Webform content type wouldn't be needed for Group to support webforms. The problem with this method is that while the content type itself can be restricted to a specific group, the webform cannot. Therefore members of any group can still access any webform if the path to the webform is known.

Generic support for config entities would be ideal as this would include taxonomy vocabularies, menus and any config entity you can think of. Even another group entity could be added to a group.

ideafarm’s picture

If you uncheck the box "Allow users to post submissions from a dedicated URL" under the webform general settings then the webform must be attached to a node or a block to receive submissions. In this way you could limit access to that node via groups.

safetypin’s picture

It seems like there ought to be a way to enable the webform entities to be related to groups as Group Content. Is that not possible because the webforms are Config Entities?

jrockowitz’s picture

Someone has sponsored #3089026: Add Group support to Webform access controls which adds support Group roles access controls to webform nodes and elements. This enhancement should address most people's requirements. If you have time please review the patch which I am hoping to commit in the near future.

jrockowitz’s picture

Anyone interested in webform and group integration should also check out the Group Webform module

heddn’s picture

Group content menu is a content-based module that links menus (config entities) to groups. I'm not sure if the model used by it is useful for webform... since menus are a bit of a special snowflake. But there might be some lessons learned that could apply here.

ccjjmartin’s picture

Component: Group Node (gnode) » Code

Since this documentation page still links to this active issue I feel it is important to leave this update. There was a webform_group module embedded in the webform module but it is now spun off into it's own module and is available here under the name Webform Group and NOT Group Webform (previously mentioned 2 posts up.