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.
I have created a proof-of-concept module to add a nodereference field to webform.
It works like this:
- Add a noderef field
- (optional) Choose a view on which to filter nodes
- The webform allows the user to select a node on the frontend
- The nid of the node is stored on the backend
If anyone is interested in this functionality, I would appreciate feedback on how you would use it.
I need it for a somewhat simple feature in which users fill out a form once for each of a particular node type they own.
Maintainers: please let me know if this would be better in contrib, and I will contrib it.
Comment | File | Size | Author |
---|---|---|---|
#1 | Picture 3.png | 68.38 KB | AaronBauman |
#1 | Picture 4.png | 170.97 KB | AaronBauman |
webform_nodereference.tgz | 2.87 KB | AaronBauman |
Comments
Comment #1
AaronBaumanMaybe some screen shots will make the functionality clearer.
Comment #2
quicksketchThis is probably a duplicate of #308449: User and node reference fields (which also has a patch of sorts). If you could merge with that issue that'd be great.
Comment #3
AaronBaumanI knew I wasn't the first one to think of this.
I swear I searched for the issue first - thanks for finding it for me.