Our client is an organization with about 100 members, and they want every member to have a feedback form---but not a single form in which a sender selects one of 100 recipients in a drop-down list.
Instead, the client wants a unique feedback form for every member, each with its own matching recipient photo and node title, maybe even a unique message from each member, like "Drop me a line, yo!" or what. The client feels that a unique feedback form provides a more engaging user experience.
We are currently encoding the 100 new nodes to serve as member pages for each of the 100 members. It will be relatively simple to upload them all in one batch using the Node Import module. (Incidentally, not all members will be given Drupal user accounts. )
It doesn't seem an efficient solution, however, to create 100 different Webform nodes as well, as it would entail loading the Webform creator UI each time, and ending up with several hundred repetitive fields.
Is there a way to employ just one Webform to achieve the same effect? Or should we be looking towards CCK, or something entirely different?
Thanks.
Comments
Comment #1
fietserwinIn short:
- pass the uid as a query parameter in the url e.g. http:///.../.../contact?user=23
- add a hidden field uid to your form with default value %get[user]
- write a hook in a custom module (replace %nid with he node id of the contact form and custom with your modulename):
Comment #2
molave commentedOkay thanks for this! I need to learn a couple of things (such as creating custom modules) before I actually try it, but will report back with results soon as I have some.
Cheers/
Comment #3
quicksketchClosing after a lack of activity.
Comment #4
emicoma commentedWould you by chance have an example of such a custom.module file ?
thanks !
Comment #5
hughey commentedThis was especially helpful! Thank you! The module works very well to address this need. Now to figure out how to offer a select list of all users if no value is passed through the URL...